1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-09-10 12:03:18 +02:00

avatars: fix missing avatars

Strip whitespace for avatars pulled from conversation info.

Gitlab: #1246
Change-Id: I767a53ee3e492507f9cb80b802a9eaaaa66d3d50
This commit is contained in:
Andreas Traczyk 2023-07-27 10:46:24 -04:00
parent e914f795bc
commit e8e9fd30c9

View file

@ -1237,7 +1237,9 @@ ConversationModel::avatar(const QString& conversationId) const
// In this case, we can just display contact name
return owner.contactModel->avatar(peer.at(0));
}
return conversation.infos["avatar"];
// We need to strip the whitespace characters for the avatar
// when it comes from the conversation info.
return conversation.infos["avatar"].simplified();
}
void