Fix refreshing counter when it's disabled
This commit is contained in:
parent
6ced647807
commit
3b29f792b6
|
@ -242,7 +242,7 @@ struct VernissageApp: App {
|
|||
|
||||
if let account = self.applicationState.account {
|
||||
self.applicationState.amountOfNewNotifications = await NotificationsService.shared.amountOfNewNotifications(for: account, modelContext: modelContext)
|
||||
try? await NotificationsService.shared.setBadgeCount(self.applicationState.amountOfNewStatuses, modelContext: modelContext)
|
||||
try? await NotificationsService.shared.setBadgeCount(self.applicationState.amountOfNewNotifications, modelContext: modelContext)
|
||||
} else {
|
||||
try? await NotificationsService.shared.setBadgeCount(0, modelContext: modelContext)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue