Fix left rooms appearing as joined rooms
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user