mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Introduce a local mechanism for managing the app's badge count
This commit is contained in:
@@ -258,7 +258,9 @@ actor NotificationServiceExtensionActor {
|
||||
|
||||
let content = UNMutableNotificationContent()
|
||||
content.body = L10n.notificationReceivedWhileOfflineIos
|
||||
content.badge = originalRequest.content.unreadCount as NSNumber?
|
||||
if !settings.roomListNotificationCountEnabled {
|
||||
content.badge = originalRequest.content.unreadCount as NSNumber?
|
||||
}
|
||||
content.sound = settings.notificationSound
|
||||
|
||||
let request = UNNotificationRequest(identifier: Self.receivedWhileOfflineNotificationID, content: content, trigger: nil)
|
||||
|
||||
Reference in New Issue
Block a user