Do not notify received read messages

This commit is contained in:
Sylvain Berfini 2022-06-06 11:37:51 +02:00
parent 9e20134b13
commit fe8e2b4b49

View file

@ -159,6 +159,11 @@ class NotificationsManager(private val context: Context) {
return
}
if (message.isRead) {
Log.w("[Notifications Manager] Received message is already marked as read, do not notify")
return
}
if (corePreferences.chatRoomShortcuts) {
if (ShortcutsHelper.isShortcutToChatRoomAlreadyCreated(context, room)) {
Log.i("[Notifications Manager] Chat room shortcut already exists")