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:
parent
e914f795bc
commit
e8e9fd30c9
1 changed files with 3 additions and 1 deletions
|
@ -1237,7 +1237,9 @@ ConversationModel::avatar(const QString& conversationId) const
|
||||||
// In this case, we can just display contact name
|
// In this case, we can just display contact name
|
||||||
return owner.contactModel->avatar(peer.at(0));
|
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
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue