diff --git a/src/qml/Panel/GroupChatDrawerHeader.qml b/src/qml/Panel/GroupChatDrawerHeader.qml index 8e4b9c0cf..0dd108aca 100644 --- a/src/qml/Panel/GroupChatDrawerHeader.qml +++ b/src/qml/Panel/GroupChatDrawerHeader.qml @@ -22,7 +22,7 @@ ColumnLayout { Layout.preferredHeight: Kirigami.Units.gridUnit * 3.5 name: room ? room.displayName : "" - source: room ? ("image://mxc/" + room.avatarMediaId) : "" + source: room && room.avatarMediaId ? ("image://mxc/" + room.avatarMediaId) : "" Rectangle { visible: room.usesEncryption