Remove warnings on closing room
This commit is contained in:
parent
308207c289
commit
9a0c1c27ed
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user