From 70adb8564f4751da4bd4553c928e7400a2bcffb9 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Sat, 23 Mar 2019 10:06:06 +0800 Subject: [PATCH] Fix invitation. --- imports/Spectral/Panel/RoomListPanel.qml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/imports/Spectral/Panel/RoomListPanel.qml b/imports/Spectral/Panel/RoomListPanel.qml index 2cf0025..452186a 100644 --- a/imports/Spectral/Panel/RoomListPanel.qml +++ b/imports/Spectral/Panel/RoomListPanel.qml @@ -937,14 +937,20 @@ Item { text: "Accept" flat: true - onClicked: currentRoom.acceptInvitation() + onClicked: { + inviteDialog.currentRoom.acceptInvitation() + inviteDialog.close() + } } Button { text: "Reject" flat: true - onClicked: currentRoom.forget() + onClicked: { + inviteDialog.currentRoom.forget() + inviteDialog.close() + } } Button {