mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-27 19:06:20 +00:00
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (message.isRead) {
|
||||||
|
Log.w("[Notifications Manager] Received message is already marked as read, do not notify")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (corePreferences.chatRoomShortcuts) {
|
if (corePreferences.chatRoomShortcuts) {
|
||||||
if (ShortcutsHelper.isShortcutToChatRoomAlreadyCreated(context, room)) {
|
if (ShortcutsHelper.isShortcutToChatRoomAlreadyCreated(context, room)) {
|
||||||
Log.i("[Notifications Manager] Chat room shortcut already exists")
|
Log.i("[Notifications Manager] Chat room shortcut already exists")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue