Use resolveResource for SpaceDrawer and RoomListPage
Fixes a bug where opening a space would not do anything due to enterRoom and enterSpaceHome missing.
This commit is contained in:
@@ -220,7 +220,7 @@ Kirigami.Page {
|
|||||||
id: layoutTimer
|
id: layoutTimer
|
||||||
interval: 100
|
interval: 100
|
||||||
onTriggered: if (spaceDrawer.showDirectChats || spaceDrawer.selectedSpaceId.length < 1) {
|
onTriggered: if (spaceDrawer.showDirectChats || spaceDrawer.selectedSpaceId.length < 1) {
|
||||||
RoomManager.enterRoom(listView.itemAtIndex(0).currentRoom)
|
RoomManager.resolveResource(listView.itemAtIndex(0).currentRoom.id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ QQC2.Control {
|
|||||||
onSelected: {
|
onSelected: {
|
||||||
root.showDirectChats = false
|
root.showDirectChats = false
|
||||||
if (!SpaceHierarchyCache.isSpaceChild(roomId, RoomManager.currentRoom.id) || root.selectedSpaceId == roomId) {
|
if (!SpaceHierarchyCache.isSpaceChild(roomId, RoomManager.currentRoom.id) || root.selectedSpaceId == roomId) {
|
||||||
RoomManager.enterSpaceHome(currentRoom)
|
RoomManager.resolveResource(currentRoom.id)
|
||||||
}
|
}
|
||||||
root.selectedSpaceId = roomId
|
root.selectedSpaceId = roomId
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user