From f71f7e9099bf92e9d9aa157d5f1fc200d9de6185 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Mon, 25 Apr 2022 23:19:53 +0100 Subject: [PATCH] cancelling existing notification intents to reset the room id extra --- .../kotlin/app/dapk/st/notifications/NotificationFactory.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt index 442b0a6..61bf94b 100644 --- a/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt +++ b/features/notifications/src/main/kotlin/app/dapk/st/notifications/NotificationFactory.kt @@ -101,9 +101,9 @@ class NotificationFactory( val openRoomIntent = PendingIntent.getActivity( context, - 55, + roomOverview.roomId.hashCode(), MessengerActivity.newInstance(context, roomOverview.roomId), - PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE + PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE ) return NotificationDelegate.Room(