From 68197a1d183a4c4a7b19eeeb2859131ced3a64ed Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 13 Feb 2020 14:33:35 +0100 Subject: [PATCH] also update phase after starting request as it might now be a request that is already ongoing --- src/components/views/right_panel/EncryptionPanel.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/right_panel/EncryptionPanel.js b/src/components/views/right_panel/EncryptionPanel.js index 2e9365fca3..89c9a26e92 100644 --- a/src/components/views/right_panel/EncryptionPanel.js +++ b/src/components/views/right_panel/EncryptionPanel.js @@ -69,6 +69,7 @@ const EncryptionPanel = ({verificationRequest, member, onClose, layout}) => { const roomId = await ensureDMExists(cli, member.userId); const verificationRequest = await cli.requestVerificationDM(member.userId, roomId); setRequest(verificationRequest); + setPhase(verificationRequest.phase); }, [member.userId]); const requested = request && (phase === PHASE_REQUESTED || phase === undefined);