Faster switching of rooms from different accounts

Use a single [userId, roomId] property for the chat page.
This gets read of the intermediate state where the userId property has
been updated but the roomId one not yet, which led to the page unloading
and reloading itself until both were properly set.

Side-effect: when starting Mirage after this commit for the first time,
the last saved page will not load and user must click a room or
other page manually.
This commit is contained in:
miruka
2020-09-13 12:47:25 -04:00
parent 32679aa7f8
commit 6df9647b59
8 changed files with 37 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ import "../../../../Base"
HColumnLayout {
readonly property alias keybindFocusItem: filterField
readonly property var modelSyncId:
[chat.userId, chat.roomId, "filtered_members"]
[chat.userRoomId[0], chat.userRoomId[1], "filtered_members"]
readonly property alias viewDepth: stackView.depth
readonly property alias filterField: filterField