Fix refreshing counter when it's disabled

This commit is contained in:
Marcin Czachurski 2023-10-24 16:35:03 +02:00
parent 6ced647807
commit 3b29f792b6
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}