From a957492150b967c0c041169046a9c59f2d02e642 Mon Sep 17 00:00:00 2001 From: Adrien Date: Tue, 18 Nov 2025 10:10:11 +0100 Subject: [PATCH] Fix regression preventing unread notifications to survive reboot --- .../android/messaging/datamodel/BugleNotifications.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/com/android/messaging/datamodel/BugleNotifications.java b/src/com/android/messaging/datamodel/BugleNotifications.java index a0897a6a..f3598189 100644 --- a/src/com/android/messaging/datamodel/BugleNotifications.java +++ b/src/com/android/messaging/datamodel/BugleNotifications.java @@ -123,14 +123,11 @@ public static void update(final String conversationId, final int coverage) { Assert.isNotMainThread(); if (!shouldNotify()) { + cancel(PendingIntentConstants.SMS_NOTIFICATION_ID); return; } if ((coverage & UPDATE_MESSAGES) != 0) { - if (conversationId == null) { - cancel(PendingIntentConstants.SMS_NOTIFICATION_ID); - } else { - createMessageNotification(conversationId); - } + createMessageNotification(conversationId); } if ((coverage & UPDATE_ERRORS) != 0) { MessageNotificationState.checkFailedMessages();