diff --git a/Ring/Ring/AppDelegate.swift b/Ring/Ring/AppDelegate.swift index a924a8b8e212c0e75ecc4bfc82bc0725bf14c555..8e400b3e258b87b193834a56c1e22580bb08edf6 100644 --- a/Ring/Ring/AppDelegate.swift +++ b/Ring/Ring/AppDelegate.swift @@ -240,14 +240,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD } func reloadDataFor(account: AccountModel) { - let state = UIApplication.shared.applicationState - if state == .active { - self.contactsService.loadContacts(withAccount: account) - self.contactsService.loadContactRequests(withAccount: account.id) - self.presenceService.subscribeBuddies(withAccount: account.id, withContacts: self.contactsService.contacts.value, subscribe: true) - self.conversationManager? - .prepareConversationsForAccount(accountId: account.id) - } + self.contactsService.loadContacts(withAccount: account) + self.contactsService.loadContactRequests(withAccount: account.id) + self.presenceService.subscribeBuddies(withAccount: account.id, withContacts: self.contactsService.contacts.value, subscribe: true) + self.conversationManager? + .prepareConversationsForAccount(accountId: account.id) } func applicationDidEnterBackground(_ application: UIApplication) {