Selaa lähdekoodia

update badge counter on account switch

cyberta 4 vuotta sitten
vanhempi
commit
98cd624132
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      deltachat-ios/Helper/NotificationManager.swift

+ 1 - 0
deltachat-ios/Helper/NotificationManager.swift

@@ -21,6 +21,7 @@ public class NotificationManager {
     public func reloadDcContext() {
         NotificationManager.removeAllNotifications()
         dcContext = dcAccounts.getSelected()
+        NotificationManager.updateApplicationIconBadge(dcContext: dcContext, reset: false)
     }
 
     public static func updateApplicationIconBadge(dcContext: DcContext, reset: Bool) {