Remove warnings on closing room

This commit is contained in:
Loren Burkholder 2021-08-10 22:16:27 -04:00
parent 308207c289
commit 9a0c1c27ed
2 changed files with 8 additions and 3 deletions

View file

@ -33,7 +33,8 @@ Page {
Connections { Connections {
function onCurrentRoomChanged() { function onCurrentRoomChanged() {
roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId), ListView.Contain); if (Rooms.currentRoom)
roomlist.positionViewAtIndex(Rooms.roomidToIndex(Rooms.currentRoom.roomId), ListView.Contain);
} }
target: Rooms target: Rooms

View file

@ -85,9 +85,13 @@ Item {
target: timelineView target: timelineView
} }
MessageView { Loader {
active: room || roomPreview
Layout.fillWidth: true Layout.fillWidth: true
implicitHeight: msgView.height - typingIndicator.height sourceComponent: MessageView {
implicitHeight: msgView.height - typingIndicator.height
}
} }
Loader { Loader {