From 7bb509005c734aec03b0a4845a649734ef417f3f Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Thu, 2 Mar 2023 10:30:59 -0500 Subject: [PATCH] Add leave button to space preview --- resources/qml/TimelineView.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index e836f60f..c7b554b8 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -279,6 +279,13 @@ Item { onClicked: Rooms.declineInvite(roomPreview.roomid) } + FlatButton { + visible: !!room + Layout.alignment: Qt.AlignHCenter + text: qsTr("leave") + onClicked: TimelineManager.openLeaveRoomDialog(room.roomId) + } + ScrollView { id: reasonField property bool showReason: false