Skip to content

Commit d11c761

Browse files
committed
Fix 2 bubbles
Signed-off-by: alex <alex@werya.be>
1 parent 4e23c56 commit d11c761

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,13 @@ open class ChatActivity :
34193419
val notificationManager = getSystemService(
34203420
Context.NOTIFICATION_SERVICE
34213421
) as android.app.NotificationManager
3422-
val notificationId = NotificationUtils.calculateCRC32(roomToken).toInt()
3422+
val existingNotification = NotificationUtils.findNotificationForRoom(
3423+
this@ChatActivity,
3424+
conversationUser!!,
3425+
roomToken
3426+
)
3427+
val notificationId = existingNotification?.id
3428+
?: NotificationUtils.calculateCRC32(roomToken).toInt()
34233429

34243430
notificationManager.cancel(notificationId)
34253431
androidx.core.content.pm.ShortcutManagerCompat.removeDynamicShortcuts(

0 commit comments

Comments
 (0)