Introduce a local mechanism for managing the app's badge count

This commit is contained in:
Stefan Ceriu
2026-09-08 19:05:44 +03:00
parent 7be93f8da8
commit 58628bd7c5
13 changed files with 164 additions and 6 deletions
@@ -339,6 +339,10 @@ class ClientProxy: ClientProxyProtocol {
client.canDeactivateAccount()
}
var totalUnreadNotifications: UInt64 {
client.totalUnreadNotifications()
}
var userIDServerName: String? {
do {
return try client.userIdServerName()
@@ -137,6 +137,9 @@ protocol ClientProxyProtocol: AnyObject {
var pusherNotificationClientIdentifier: String? { get }
/// The total number of unread notifications across all joined, non-muted rooms, as computed by the SDK.
var totalUnreadNotifications: UInt64 { get }
var mediaLoader: MediaLoaderProtocol { get }
var contentScanner: ContentScannerProxyProtocol? { get }