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:
parent
05c636a8d4
commit
eb9603f4c0
@ -198,6 +198,7 @@ Popup {
|
|||||||
Avatar {
|
Avatar {
|
||||||
height: popup.avatarHeight
|
height: popup.avatarHeight
|
||||||
width: popup.avatarWidth
|
width: popup.avatarWidth
|
||||||
|
displayName: model.roomName
|
||||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
popup.completionClicked(completer.completionAt(model.index));
|
popup.completionClicked(completer.completionAt(model.index));
|
||||||
@ -227,6 +228,7 @@ Popup {
|
|||||||
Avatar {
|
Avatar {
|
||||||
height: popup.avatarHeight
|
height: popup.avatarHeight
|
||||||
width: popup.avatarWidth
|
width: popup.avatarWidth
|
||||||
|
displayName: model.roomName
|
||||||
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
url: model.avatarUrl.replace("mxc://", "image://MxcImage/")
|
||||||
onClicked: popup.completionClicked(completer.completionAt(model.index))
|
onClicked: popup.completionClicked(completer.completionAt(model.index))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user