Merge pull request #4318 from matrix-org/bwindels/fixlegacyuserverif

Fix: legacy verify user throwing error
This commit is contained in:
Bruno Windels 2020-04-01 10:03:53 +00:00 committed by GitHub
commit 7a92c90b79
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,7 +99,7 @@ export async function legacyVerifyUser(user) {
return; return;
} }
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();
const verificationRequestPromise = cli.beginKeyVerification(user.userId); const verificationRequestPromise = cli.requestVerification(user.userId);
dis.dispatch({ dis.dispatch({
action: "set_right_panel_phase", action: "set_right_panel_phase",
phase: RIGHT_PANEL_PHASES.EncryptionPanel, phase: RIGHT_PANEL_PHASES.EncryptionPanel,