Don't print safety number changes in inactive groups

Fixes #5930
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2016-12-14 16:20:09 -08:00
parent b16a27c249
commit 01bc2ebde4

View File

@ -42,7 +42,7 @@ public class IdentityUpdateJob extends MasterSecretJob {
GroupDatabase.GroupRecord groupRecord;
while ((groupRecord = reader.getNext()) != null) {
if (groupRecord.getMembers().contains(number)) {
if (groupRecord.getMembers().contains(number) && groupRecord.isActive()) {
SignalServiceGroup group = new SignalServiceGroup(groupRecord.getId());
IncomingTextMessage incoming = new IncomingTextMessage(number, 1, time, null, Optional.of(group), 0);
IncomingIdentityUpdateMessage groupUpdate = new IncomingIdentityUpdateMessage(incoming);