From 6408432c76bf5de160754112b64da93798cd8a7f Mon Sep 17 00:00:00 2001 From: Doug <6060466+pixlwave@users.noreply.github.com> Date: Wed, 20 Aug 2025 10:26:45 +0100 Subject: [PATCH] Add a couple of logs to debug badge counts. (#4425) --- NSE/Sources/NotificationHandler.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NSE/Sources/NotificationHandler.swift b/NSE/Sources/NotificationHandler.swift index 0d4b754f4..43d2b8795 100644 --- a/NSE/Sources/NotificationHandler.swift +++ b/NSE/Sources/NotificationHandler.swift @@ -44,6 +44,7 @@ class NotificationHandler { // Copy over the unread information to the notification badge notificationContent.badge = notificationContent.unreadCount as NSNumber? + MXLog.info("\(tag) New badge value: \(notificationContent.badge?.stringValue ?? "nil")") guard let notificationItemProxy = await userSession.notificationItemProxy(roomID: roomID, eventID: eventID) else { MXLog.error("\(tag) Failed retrieving notification item") @@ -82,6 +83,7 @@ class NotificationHandler { let content = UNMutableNotificationContent() content.badge = notificationContent.unreadCount as NSNumber? + MXLog.info("\(tag) New badge value: \(content.badge?.stringValue ?? "nil")") contentHandler(content) }