From 687884431eee1ed4c6910f008709f970fcfaf439 Mon Sep 17 00:00:00 2001 From: Mathieu Velten Date: Fri, 13 Mar 2020 23:30:16 +0100 Subject: [PATCH] Refresh the whole notifs when cleaning one so the summary get updated Fix summary notification staying after "mark as read" --- CHANGES.md | 1 + .../riotx/features/notifications/NotificationDrawerManager.kt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 71a2bd4616..9b3846c41b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,6 +9,7 @@ Improvements 🙌: Bugfix 🐛: - Message transitions in encrypted rooms are jarring #518 + - Fix summary notification staying after "mark as read" Translations 🗣: - diff --git a/vector/src/main/java/im/vector/riotx/features/notifications/NotificationDrawerManager.kt b/vector/src/main/java/im/vector/riotx/features/notifications/NotificationDrawerManager.kt index 0f1d5f466e..73297e9add 100644 --- a/vector/src/main/java/im/vector/riotx/features/notifications/NotificationDrawerManager.kt +++ b/vector/src/main/java/im/vector/riotx/features/notifications/NotificationDrawerManager.kt @@ -157,7 +157,7 @@ class NotificationDrawerManager @Inject constructor(private val context: Context e is NotifiableMessageEvent && e.roomId == roomId } } - notificationUtils.cancelNotificationMessage(roomId, ROOM_MESSAGES_NOTIFICATION_ID) + refreshNotificationDrawer() } }