From 0beda1e6157c54be988a4d9b0b47d76a8e4acd7a Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Tue, 26 May 2026 13:01:30 +0000 Subject: [PATCH] Cancel delayed notifications when notification state is empty. --- .../securesms/notifications/v2/DefaultMessageNotifier.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/DefaultMessageNotifier.kt b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/DefaultMessageNotifier.kt index 35059e3ae7..ef54be3910 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/DefaultMessageNotifier.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/notifications/v2/DefaultMessageNotifier.kt @@ -187,6 +187,7 @@ class DefaultMessageNotifier(context: Application) : MessageNotifier { if (state.isEmpty) { Log.i(TAG, "State is empty, cancelling all notifications") + cancelDelayedNotifications() NotificationCancellationHelper.cancelAllMessageNotifications(context, stickyThreads.map { it.value.notificationId }.toSet()) updateBadge(context, 0) clearReminderInternal(context)