mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 07:27:26 +00:00
Respect the 206 paged response from the server group logs endpoint.
Prevent the deduplicate message logic firing and log it if it does.
This commit is contained in:
@@ -372,6 +372,7 @@ public final class GroupsV2StateProcessor {
|
||||
Log.d(TAG, "Skipping profile key changes only update message");
|
||||
} else {
|
||||
storeMessage(GroupProtoUtil.createDecryptedGroupV2Context(masterKey, new GroupMutation(previousGroupState, entry.getChange(), entry.getGroup()), null), timestamp);
|
||||
timestamp++;
|
||||
}
|
||||
previousGroupState = entry.getGroup();
|
||||
}
|
||||
@@ -476,7 +477,9 @@ public final class GroupsV2StateProcessor {
|
||||
IncomingTextMessage incoming = new IncomingTextMessage(sender, -1, timestamp, timestamp, "", Optional.of(groupId), 0, false);
|
||||
IncomingGroupUpdateMessage groupMessage = new IncomingGroupUpdateMessage(incoming, decryptedGroupV2Context);
|
||||
|
||||
smsDatabase.insertMessageInbox(groupMessage);
|
||||
if (!smsDatabase.insertMessageInbox(groupMessage).isPresent()) {
|
||||
Log.w(TAG, "Could not insert update message");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user