diff --git a/src/app/qml/RoomPage.qml b/src/app/qml/RoomPage.qml index b0da6e149..bf70c0811 100644 --- a/src/app/qml/RoomPage.qml +++ b/src/app/qml/RoomPage.qml @@ -178,7 +178,7 @@ Kirigami.Page { spacing: 0 - readonly property bool shouldShowPins: root.currentRoom.pinnedMessage.length > 0 && !Kirigami.Settings.isMobile + readonly property bool shouldShowPins: root.currentRoom?.pinnedMessage.length > 0 && !Kirigami.Settings.isMobile QQC2.Control { id: pinControl