remove notification badge when vote through notification

This commit is contained in:
Trey t
2022-01-22 16:16:41 -06:00
parent 2a89ccece6
commit 7322151595
2 changed files with 3 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
case .great:
PersistenceController.shared.add(mood: .great, forDate: date)
}
UIApplication.shared.applicationIconBadgeNumber = 0
}
WidgetCenter.shared.reloadAllTimelines()
completionHandler()