also update phase after starting request

as it might now be a request that is already ongoing
pull/21833/head
Bruno Windels 2020-02-13 14:33:35 +01:00
parent d49fbf25f7
commit 68197a1d18
1 changed files with 1 additions and 0 deletions

View File

@ -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);