Working public room directory.
Fix "no known servers". Rename all QMatrixClient to Quotient.
This commit is contained in:
@@ -296,13 +296,7 @@ Item {
|
||||
if (category === RoomType.Invited) {
|
||||
acceptInvitationDialog.createObject(ApplicationWindow.overlay, {"room": currentRoom}).open()
|
||||
} else {
|
||||
if (enteredRoom) {
|
||||
leaveRoom(enteredRoom)
|
||||
enteredRoom.displayed = false
|
||||
}
|
||||
enterRoom(currentRoom)
|
||||
enteredRoom = currentRoom
|
||||
currentRoom.displayed = true
|
||||
joinRoom(currentRoom)
|
||||
}
|
||||
}
|
||||
onSecondaryClicked: roomListContextMenu.createObject(parent, {"room": currentRoom}).popup()
|
||||
@@ -427,4 +421,14 @@ Item {
|
||||
|
||||
AcceptInvitationDialog {}
|
||||
}
|
||||
|
||||
function joinRoom(room) {
|
||||
if (enteredRoom) {
|
||||
leaveRoom(enteredRoom)
|
||||
enteredRoom.displayed = false
|
||||
}
|
||||
enterRoom(room)
|
||||
enteredRoom = room
|
||||
room.displayed = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user