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

messagesview: fix empty avatar being used for outgoing

Change-Id: Ief3469b869a98745d82039576ad21fe1561f2793
parent 0ef04d6d
Branches
No related tags found
No related merge requests found
...@@ -868,6 +868,9 @@ CallWidget::setConversationProfileData(const lrc::api::conversation::Info& convI ...@@ -868,6 +868,9 @@ CallWidget::setConversationProfileData(const lrc::api::conversation::Info& convI
auto convModel = LRCInstance::getCurrentConversationModel(); auto convModel = LRCInstance::getCurrentConversationModel();
auto accInfo = &LRCInstance::getCurrentAccountInfo(); auto accInfo = &LRCInstance::getCurrentAccountInfo();
auto contactUri = convInfo.participants.front(); auto contactUri = convInfo.participants.front();
if (contactUri.empty()) {
return;
}
try { try {
auto& contact = accInfo->contactModel->getContact(contactUri); auto& contact = accInfo->contactModel->getContact(contactUri);
auto bestName = Utils::bestNameForConversation(convInfo, *convModel); auto bestName = Utils::bestNameForConversation(convInfo, *convModel);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment