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

conversation: skip loading if conversation Id is empty

When loading from the notification extension, check if the
conversation Id is empty. This can happen when cloning a
conversation or during resubscribe.
In such cases, we only need to start the account.

Change-Id: Ia59b88cbf00a594621b61a1d534b18cb3805c827
parent 79b8f3a0
Branches
No related tags found
No related merge requests found
......@@ -3049,6 +3049,11 @@ Manager::loadAccountAndConversation(const std::string& accountId,
JAMI_WARN("Unable to load account %s", accountId.c_str());
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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment