Fix account page not being highlighted on startup
If the page loaded on app startup is account settings or add new chat, ensure the room list properly highlights the corresponding account delegate.
This commit is contained in:
parent
db9fb6fda8
commit
35fa1fa16b
|
@ -21,11 +21,15 @@ HListView {
|
||||||
readonly property bool currentShouldBeRoom:
|
readonly property bool currentShouldBeRoom:
|
||||||
window.uiState.page === "Pages/Chat/Chat.qml"
|
window.uiState.page === "Pages/Chat/Chat.qml"
|
||||||
|
|
||||||
readonly property string wantedUserId:
|
readonly property string wantedUserId: (
|
||||||
(window.uiState.pageProperties.userRoomId || [])[0] || ""
|
window.uiState.pageProperties.userRoomId ||
|
||||||
|
[window.uiState.pageProperties.userId, ""]
|
||||||
|
)[0] || ""
|
||||||
|
|
||||||
readonly property string wantedRoomId:
|
readonly property string wantedRoomId: (
|
||||||
(window.uiState.pageProperties.userRoomId || [])[1] || ""
|
window.uiState.pageProperties.userRoomId ||
|
||||||
|
["", window.uiState.pageProperties.roomId]
|
||||||
|
)[1] || ""
|
||||||
|
|
||||||
readonly property var accountIndice: {
|
readonly property var accountIndice: {
|
||||||
const accounts = {}
|
const accounts = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user