Do not notify received read messages
This commit is contained in:
parent
9e20134b13
commit
fe8e2b4b49
1 changed files with 5 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Reference in a new issue