mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Add a couple of logs to debug badge counts. (#4425)
This commit is contained in:
@@ -44,6 +44,7 @@ class NotificationHandler {
|
|||||||
|
|
||||||
// Copy over the unread information to the notification badge
|
// Copy over the unread information to the notification badge
|
||||||
notificationContent.badge = notificationContent.unreadCount as NSNumber?
|
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 {
|
guard let notificationItemProxy = await userSession.notificationItemProxy(roomID: roomID, eventID: eventID) else {
|
||||||
MXLog.error("\(tag) Failed retrieving notification item")
|
MXLog.error("\(tag) Failed retrieving notification item")
|
||||||
@@ -82,6 +83,7 @@ class NotificationHandler {
|
|||||||
|
|
||||||
let content = UNMutableNotificationContent()
|
let content = UNMutableNotificationContent()
|
||||||
content.badge = notificationContent.unreadCount as NSNumber?
|
content.badge = notificationContent.unreadCount as NSNumber?
|
||||||
|
MXLog.info("\(tag) New badge value: \(content.badge?.stringValue ?? "nil")")
|
||||||
|
|
||||||
contentHandler(content)
|
contentHandler(content)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user