From 873fb6b57888bf16164763971dd3059d75772876 Mon Sep 17 00:00:00 2001 From: Harris Date: Fri, 20 Aug 2021 15:01:09 +1000 Subject: [PATCH] fix: clear notifications properly on muted groups --- .../securesms/notifications/DefaultMessageNotifier.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java b/app/src/main/java/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java index 552f7200ef..936548ecc7 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java +++ b/app/src/main/java/org/thoughtcrime/securesms/notifications/DefaultMessageNotifier.java @@ -284,8 +284,9 @@ public class DefaultMessageNotifier implements MessageNotifier { sendMultipleThreadNotification(context, notificationState, signal); } else if (notificationState.getMessageCount() > 0){ sendSingleThreadNotification(context, notificationState, signal, false); + } else { + cancelActiveNotifications(context); } - cancelOrphanedNotifications(context, notificationState); updateBadge(context, notificationState.getMessageCount());