From 59d895b8daa4b26df921bbddd8b6e4b523b2aca4 Mon Sep 17 00:00:00 2001 From: kkostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Wed, 26 May 2021 21:15:03 -0400 Subject: [PATCH] smartlist: fix conversation loading Change-Id: I569c16e6a0fcc9e1d9cbeb9ddc75f435df17d8b6 --- Ring/Ring/AppDelegate.swift | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Ring/Ring/AppDelegate.swift b/Ring/Ring/AppDelegate.swift index a924a8b8e..8e400b3e2 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) { -- GitLab