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

iOS notification: ensure account is registered

When a notification is received, the account should be
registered, regardless of whether we need to load conversations.

Change-Id: Icb68605d0b7bbee94ce4b49ba34e9ff878c66215
parent 2771304c
No related branches found
No related tags found
No related merge requests found
......@@ -3016,10 +3016,6 @@ Manager::loadAccountAndConversation(const std::string& accountId,
return;
}
if (convId.empty() && !loadAll) {
// Nothing to load. Only need to start account
return;
}
if (auto jamiAcc = std::dynamic_pointer_cast<JamiAccount>(account)) {
jamiAcc->setActive(true);
jamiAcc->reloadContacts();
......@@ -3029,7 +3025,7 @@ Manager::loadAccountAndConversation(const std::string& accountId,
convModule->reloadRequests();
if (loadAll) {
convModule->loadConversations();
} else {
} else if (!convId.empty()) {
jamiAcc->loadConversation(convId);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment