Add error callback of join room and add room.
Also fix a bug of not being able to log out when the access token is revoked.
This commit is contained in:
@@ -254,6 +254,7 @@ ApplicationWindow {
|
||||
onAccepted: spectralController.createRoom(currentConnection, addRoomDialogNameTextField.text, addRoomDialogTopicTextField.text)
|
||||
}
|
||||
}
|
||||
|
||||
MenuItem {
|
||||
text: "Join Room"
|
||||
|
||||
@@ -304,7 +305,7 @@ ApplicationWindow {
|
||||
placeholderText: "@bot:matrix.org"
|
||||
}
|
||||
|
||||
onAccepted: currentConnection.createDirectChat(directChatDialogTextField.text)
|
||||
onAccepted: spectralController.createDirectChat(currentConnection, directChatDialogTextField.text)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user