Always use resolveResource instead of enterRoom or EnterSpaceHome
This commit is contained in:
@@ -54,11 +54,7 @@ ColumnLayout {
|
||||
onTriggered: {
|
||||
let dialog = pageStack.pushDialogLayer("qrc:/org/kde/neochat/qml/ExploreRoomsPage.qml", {connection: root.connection}, {title: i18nc("@title", "Explore Rooms")})
|
||||
dialog.roomSelected.connect((roomId, displayName, avatarUrl, alias, topic, memberCount, isJoined) => {
|
||||
if (isJoined) {
|
||||
RoomManager.enterRoom(root.connection.room(roomId));
|
||||
} else {
|
||||
RoomManager.resolveResource(roomId.length > 0 ? roomId : alias, "join");
|
||||
}
|
||||
RoomManager.resolveResource(roomId.length > 0 ? roomId : alias, isJoined ? "" : "join")
|
||||
})
|
||||
exploreTabBar.currentIndex = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user