Fix creating broken direct chat for user with a direct chat already open

Just enter the existing room instead of trying to create a new one but
broken.

Fix !237


(cherry picked from commit 0dbb56ba1e)
This commit is contained in:
Carl Schwan
2021-05-23 21:43:14 +02:00
parent ac75dd57c0
commit 41b64f977c
3 changed files with 16 additions and 1 deletions

View File

@@ -133,7 +133,7 @@ Kirigami.OverlaySheet {
text: i18n("Open a private chat")
icon.name: "document-send"
onTriggered: {
Controller.activeConnection.requestDirectChat(user)
Controller.openOrCreateDirectChat(user);
root.close()
}
}