Fix room completions not showing label avatars

When no image is set for a room, the room didn't have the first
character in the avatar, when opening any completer, that showed it.
This commit is contained in:
Nicolas Werner 2021-03-14 02:50:44 +01:00
parent 05c636a8d4
commit eb9603f4c0
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 2 additions and 0 deletions

View File

@ -198,6 +198,7 @@ Popup {
Avatar {
height: popup.avatarHeight
width: popup.avatarWidth
displayName: model.roomName
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
onClicked: {
popup.completionClicked(completer.completionAt(model.index));
@ -227,6 +228,7 @@ Popup {
Avatar {
height: popup.avatarHeight
width: popup.avatarWidth
displayName: model.roomName
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
onClicked: popup.completionClicked(completer.completionAt(model.index))
}