Cancel delayed notifications when notification state is empty.

This commit is contained in:
Greyson Parrelli
2026-05-26 13:01:30 +00:00
committed by Michelle Tang
parent b3acefdb08
commit 0beda1e615
@@ -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)