mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-06 13:31:18 +01:00
Cancel delayed notifications when notification state is empty.
This commit is contained in:
committed by
Michelle Tang
parent
b3acefdb08
commit
0beda1e615
+1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user