Add leave button to space preview

This commit is contained in:
Loren Burkholder 2023-03-02 10:30:59 -05:00
parent 1e701d411b
commit 7bb509005c

View file

@ -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