Skip to content
Snippets Groups Projects
Commit 59d895b8 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

smartlist: fix conversation loading

Change-Id: I569c16e6a0fcc9e1d9cbeb9ddc75f435df17d8b6
parent bbdb2612
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment