Skip to content
Snippets Groups Projects
Commit 5a5fe43b authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

fix crash when conversation does not exist and contact is added

Change-Id: I44289cc4ac77dcb3ab0445f3bdd7ef06d0d01444
parent ca027aba
No related branches found
No related tags found
No related merge requests found
......@@ -626,6 +626,9 @@ void CallWidget::slotAccountChanged(int index)
auto convModel = LRCInstance::getCurrentConversationModel();
auto currentConversation = Utils::getConversationFromUid(selectedConvUid(),
*convModel);
if (currentConversation == convModel->allFilteredConversations().end()) {
return;
}
if (contactId == contactModel.get()->getContact((*currentConversation).participants.at(0)).profileInfo.uri) {
ui->messageView->clear();
ui->messageView->printHistory(*convModel, currentConversation->interactions);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment