From 569d5b6156fee2e353ee02ac96feac548a812b3f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 25 Feb 2020 13:13:31 +0100 Subject: [PATCH] show right panel before waiting for .ready event to send --- src/components/views/toasts/VerificationRequestToast.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/toasts/VerificationRequestToast.js b/src/components/views/toasts/VerificationRequestToast.js index 4a881ae852..c11cefc839 100644 --- a/src/components/views/toasts/VerificationRequestToast.js +++ b/src/components/views/toasts/VerificationRequestToast.js @@ -78,7 +78,6 @@ export default class VerificationRequestToast extends React.PureComponent { // no room id for to_device requests const cli = MatrixClientPeg.get(); try { - await request.accept(); if (request.channel.roomId) { dis.dispatch({ action: 'view_room', @@ -99,6 +98,7 @@ export default class VerificationRequestToast extends React.PureComponent { verificationRequest: request, }, null, /* priority = */ false, /* static = */ true); } + await request.accept(); } catch (err) { console.error(err.message); }