Skip to content
Snippets Groups Projects
Commit 9a0c1c27 authored by Loren Burkholder's avatar Loren Burkholder
Browse files

Remove warnings on closing room

parent 308207c2
No related branches found
No related tags found
No related merge requests found
Pipeline #1569 passed
......@@ -33,7 +33,8 @@ Page {
Connections {
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
......
......@@ -85,9 +85,13 @@ Item {
target: timelineView
}
MessageView {
Loader {
active: room || roomPreview
Layout.fillWidth: true
implicitHeight: msgView.height - typingIndicator.height
sourceComponent: MessageView {
implicitHeight: msgView.height - typingIndicator.height
}
}
Loader {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment