summary refs log tree commit diff
path: root/resources
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-03-02 10:30:59 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2023-03-02 10:30:59 -0500
commit7bb509005c734aec03b0a4845a649734ef417f3f (patch)
treea6515f8b15be1913bfe2516660d5b6b422161879 /resources
parentDon't double-show encryption dialog (diff)
downloadnheko-7bb509005c734aec03b0a4845a649734ef417f3f.tar.xz
Add leave button to space preview
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/TimelineView.qml7
1 files changed, 7 insertions, 0 deletions
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