Remove forgotten rooms from the view
This commit is contained in:
@@ -25,11 +25,8 @@ Banner {
|
||||
button.loading = true
|
||||
py.callClientCoro(
|
||||
chatPage.userId, "room_forget", [chatPage.roomId], {},
|
||||
function() {
|
||||
button.loading = false
|
||||
pageStack.clear()
|
||||
}
|
||||
function() { button.loading = false }
|
||||
)
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -7,6 +7,7 @@ import "RoomSidePane"
|
||||
|
||||
HColumnLayout {
|
||||
property var roomInfo: null
|
||||
onRoomInfoChanged: if (! roomInfo) { pageStack.showPage("Default") }
|
||||
|
||||
readonly property string userId: roomInfo.userId
|
||||
readonly property string category: roomInfo.category
|
||||
|
Reference in New Issue
Block a user