When room changes category, affect the Chat too

This commit is contained in:
miruka
2019-07-07 02:35:22 -04:00
parent be152c3acf
commit a47e6b5c07
5 changed files with 33 additions and 29 deletions

View File

@@ -70,10 +70,13 @@ Item {
}
function showRoom(userId, category, roomId) {
pageStack.replace(
"Chat/Chat.qml",
{ userId: userId, category: category, roomId: roomId }
)
var info = rooms.getWhere({
"userId": userId,
"roomId": roomId,
"category": category
}, 1)[0]
pageStack.replace("Chat/Chat.qml", {"roomInfo": info})
}
Component.onCompleted: initialRoomTimer.start()