We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e23c56 commit d11c761Copy full SHA for d11c761
app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
@@ -3419,7 +3419,13 @@ open class ChatActivity :
3419
val notificationManager = getSystemService(
3420
Context.NOTIFICATION_SERVICE
3421
) as android.app.NotificationManager
3422
- val notificationId = NotificationUtils.calculateCRC32(roomToken).toInt()
+ val existingNotification = NotificationUtils.findNotificationForRoom(
3423
+ this@ChatActivity,
3424
+ conversationUser!!,
3425
+ roomToken
3426
+ )
3427
+ val notificationId = existingNotification?.id
3428
+ ?: NotificationUtils.calculateCRC32(roomToken).toInt()
3429
3430
notificationManager.cancel(notificationId)
3431
androidx.core.content.pm.ShortcutManagerCompat.removeDynamicShortcuts(
0 commit comments