Stop showing empty group updates for internal users.
This commit is contained in:
parent
429fdf0d76
commit
922d0d7203
1 changed files with 2 additions and 9 deletions
|
@ -407,16 +407,9 @@ public final class GroupsV2StateProcessor {
|
|||
if (entry.getChange() != null && DecryptedGroupUtil.changeIsEmptyExceptForProfileKeyChanges(entry.getChange()) && !DecryptedGroupUtil.changeIsEmpty(entry.getChange())) {
|
||||
Log.d(TAG, "Skipping profile key changes only update message");
|
||||
} else {
|
||||
boolean insert = true;
|
||||
if (entry.getChange() != null && DecryptedGroupUtil.changeIsEmpty(entry.getChange()) && previousGroupState != null) {
|
||||
if (FeatureFlags.internalUser()) {
|
||||
Log.w(TAG, "Empty group update message seen. Inserting anyway.");
|
||||
} else {
|
||||
Log.w(TAG, "Empty group update message seen. Not inserting.");
|
||||
insert = false;
|
||||
}
|
||||
}
|
||||
if (insert) {
|
||||
} else {
|
||||
storeMessage(GroupProtoUtil.createDecryptedGroupV2Context(masterKey, new GroupMutation(previousGroupState, entry.getChange(), entry.getGroup()), null), timestamp);
|
||||
timestamp++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue