Fix null warning for space avatars

This commit is contained in:
Nicolas Werner 2021-06-18 16:23:09 +02:00
parent 884fb74d2d
commit 847e52a6af
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9

View file

@ -138,7 +138,7 @@ Item {
spacing: Nheko.paddingLarge
Avatar {
url: room.roomAvatarUrl.replace("mxc://", "image://MxcImage/")
url: room ? room.roomAvatarUrl.replace("mxc://", "image://MxcImage/") : ""
displayName: room ? room.roomName : ""
height: 130
width: 130