mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-23 18:49:37 +00:00
Squelch notifications for active desktop converastions
Additionally, limit audible notifications to once every 2 seconds. // FREEBIE Fixes #4905 Fixes #3165 Closes #5813
This commit is contained in:
@@ -270,6 +270,8 @@ public class PushDecryptJob extends ContextJob {
|
||||
DatabaseFactory.getThreadDatabase(getContext()).setRead(threadId);
|
||||
MessageNotifier.updateNotification(getContext(), masterSecret.getMasterSecret().orNull());
|
||||
}
|
||||
|
||||
MessageNotifier.setLastDesktopActivityTimestamp(message.getTimestamp());
|
||||
}
|
||||
|
||||
private void handleSynchronizeRequestMessage(@NonNull MasterSecretUnion masterSecret,
|
||||
@@ -315,6 +317,8 @@ public class PushDecryptJob extends ContextJob {
|
||||
}
|
||||
}
|
||||
|
||||
MessageNotifier.setLastDesktopActivityTimestamp(envelopeTimestamp);
|
||||
MessageNotifier.cancelDelayedNotifications();
|
||||
MessageNotifier.updateNotification(context, masterSecret.getMasterSecret().orNull());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user