await request promise inside encryption panel to show spinner
This commit is contained in:
parent
3c2f4a5c42
commit
7d051d6a1d
3 changed files with 18 additions and 3 deletions
|
@ -171,14 +171,14 @@ async function verifyDevice(userId, device) {
|
|||
return;
|
||||
}
|
||||
const cli = MatrixClientPeg.get();
|
||||
const verificationRequest = await cli.requestVerification(
|
||||
const verificationRequestPromise = cli.requestVerification(
|
||||
userId,
|
||||
[device.deviceId],
|
||||
);
|
||||
dis.dispatch({
|
||||
action: "set_right_panel_phase",
|
||||
phase: RIGHT_PANEL_PHASES.EncryptionPanel,
|
||||
refireParams: {member, verificationRequest},
|
||||
refireParams: {member, verificationRequestPromise},
|
||||
});
|
||||
},
|
||||
primaryButton: _t("Done"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue