Commit 5a5fe43b authored by Andreas Traczyk's avatar Andreas Traczyk

fix crash when conversation does not exist and contact is added

Change-Id: I44289cc4ac77dcb3ab0445f3bdd7ef06d0d01444
parent ca027aba
......@@ -626,6 +626,9 @@ void CallWidget::slotAccountChanged(int index)
auto convModel = LRCInstance::getCurrentConversationModel();
auto currentConversation = Utils::getConversationFromUid(selectedConvUid(),
if (currentConversation == convModel->allFilteredConversations().end()) {
if (contactId == contactModel.get()->getContact((*currentConversation) {
ui->messageView->printHistory(*convModel, currentConversation->interactions);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment