From ebe69fd4c02c979d4b15e80be5e016505f8fe8da Mon Sep 17 00:00:00 2001 From: Black Hat Date: Tue, 11 Sep 2018 14:58:07 +0800 Subject: [PATCH] Fix broken accept/decline invitation. --- qml/form/RoomListForm.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/qml/form/RoomListForm.qml b/qml/form/RoomListForm.qml index f9c9c11..98f209f 100644 --- a/qml/form/RoomListForm.qml +++ b/qml/form/RoomListForm.qml @@ -119,7 +119,14 @@ Item { roomContextMenu.room = currentRoom roomContextMenu.popup() } - onPrimaryClicked: category === RoomType.Invited ? inviteDialog.open() : enteredRoom = currentRoom + onPrimaryClicked: { + if (category === RoomType.Invited) { + inviteDialog.currentRoom = currentRoom + inviteDialog.open() + } else { + enteredRoom = currentRoom + } + } ToolTip.visible: MSettings.miniMode && containsMouse ToolTip.text: name @@ -205,6 +212,8 @@ Item { RoomContextMenu { id: roomContextMenu } Dialog { + property var currentRoom + id: inviteDialog parent: ApplicationWindow.overlay