mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Don't print safety number changes in inactive groups
Fixes #5930 // FREEBIE
This commit is contained in:
parent
b16a27c249
commit
01bc2ebde4
@ -42,7 +42,7 @@ public class IdentityUpdateJob extends MasterSecretJob {
|
|||||||
GroupDatabase.GroupRecord groupRecord;
|
GroupDatabase.GroupRecord groupRecord;
|
||||||
|
|
||||||
while ((groupRecord = reader.getNext()) != null) {
|
while ((groupRecord = reader.getNext()) != null) {
|
||||||
if (groupRecord.getMembers().contains(number)) {
|
if (groupRecord.getMembers().contains(number) && groupRecord.isActive()) {
|
||||||
SignalServiceGroup group = new SignalServiceGroup(groupRecord.getId());
|
SignalServiceGroup group = new SignalServiceGroup(groupRecord.getId());
|
||||||
IncomingTextMessage incoming = new IncomingTextMessage(number, 1, time, null, Optional.of(group), 0);
|
IncomingTextMessage incoming = new IncomingTextMessage(number, 1, time, null, Optional.of(group), 0);
|
||||||
IncomingIdentityUpdateMessage groupUpdate = new IncomingIdentityUpdateMessage(incoming);
|
IncomingIdentityUpdateMessage groupUpdate = new IncomingIdentityUpdateMessage(incoming);
|
||||||
|
Loading…
Reference in New Issue
Block a user