Remove forgotten rooms from the view

This commit is contained in:
miruka
2019-07-07 22:19:17 -04:00
parent 47327c64cf
commit b02fc11903
9 changed files with 26 additions and 20 deletions

View File

@@ -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 }
)
},
}
}
}

View File

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