Fix left rooms appearing as joined rooms

This commit is contained in:
miruka 2019-12-12 10:33:52 -04:00
parent 438b0d26a4
commit 82e4dff2ab
3 changed files with 6 additions and 20 deletions

View File

@ -46,7 +46,6 @@
- Message order isn't preserved when sending a first message in a E2E
room, then while keys are being shared sending one with another account,
then sending one with the first account again
- Left rooms reappear as joined rooms
- If account not in config anymore, discard ui state last page on startup
- Do something when access token is invalid

View File

@ -26,20 +26,6 @@ Item {
readonly property alias roomPane: roomPane
onRoomInfoChanged: {
if (roomInfo.left) {
// If left, the room will most likely be gone on client restart.
// Try to switch back to the previous page.
if (pageLoader.showPrevious()) return
// If there wasn't any previous page, show default page.
window.uiState.page = "Pages/Default.qml"
window.uiState.pageProperties = {}
window.uiStateChanged()
}
}
HLoader {
id: loader
anchors.rightMargin: roomPane.visibleSize

View File

@ -52,15 +52,16 @@ HPage {
Layout.fillWidth: true
}
LeftBanner {
id: leftBanner
visible: chat.roomInfo.left
Layout.fillWidth: true
}
Composer {
id: composer
visible: ! chat.roomInfo.left &&
! chat.roomInfo.inviter_id
}
LeftBanner {
id: leftBanner
visible: chat.roomInfo.left
Layout.fillWidth: true
}
}