mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 04:39:42 +00:00
Some identity key handling changes
1) Prefetch identity keys when possible 2) Always accept prefetched keys or keys from incoming messages 3) Block sending only if it's a recent change, or if always block is enabled // FREEBIE
This commit is contained in:
@@ -208,6 +208,11 @@ public class MessageNotifier {
|
||||
if (isVisible) {
|
||||
List<MarkedMessageInfo> messageIds = threads.setRead(threadId, false);
|
||||
MarkReadReceiver.process(context, messageIds);
|
||||
|
||||
if (recipients != null && recipients.getPrimaryRecipient() != null) {
|
||||
DatabaseFactory.getIdentityDatabase(context)
|
||||
.setSeen(recipients.getPrimaryRecipient().getRecipientId());
|
||||
}
|
||||
}
|
||||
|
||||
if (!TextSecurePreferences.isNotificationsEnabled(context) ||
|
||||
|
||||
Reference in New Issue
Block a user