Browse Source

Merge pull request #1293 from deltachat/update_badge_counter_on_account_switch

update badge counter on account switch
cyBerta 4 years ago
parent
commit
cf86c0da6d
1 changed files with 1 additions and 0 deletions
  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) {