Set currentRoom when clicked.

It should resolve #86.
This commit is contained in:
Black Hat 2018-10-16 18:43:07 +08:00
parent 7b10707dde
commit b30d92a516
2 changed files with 1 additions and 1 deletions

View File

@ -2,5 +2,4 @@ import QtQuick 2.9
RoomForm { RoomForm {
roomListModel.onNewMessage: if (!window.active) spectralController.showMessage(roomName, content, icon) roomListModel.onNewMessage: if (!window.active) spectralController.showMessage(roomName, content, icon)
roomListModel.onRoomAdded: if (room) room.getPreviousContent(5)
} }

View File

@ -25,6 +25,7 @@ Rectangle {
inviteDialog.currentRoom = currentRoom inviteDialog.currentRoom = currentRoom
inviteDialog.open() inviteDialog.open()
} else { } else {
listView.currentIndex = index
enteredRoom = currentRoom enteredRoom = currentRoom
} }
} }