pull/21833/head
Michael Telatynski 2020-01-28 11:17:53 +00:00
parent 657457c14b
commit c93b080434
1 changed files with 9 additions and 8 deletions

View File

@ -83,14 +83,15 @@ export default class VerificationRequestToast extends React.PureComponent {
}); });
await request.accept(); await request.accept();
const cli = MatrixClientPeg.get(); const cli = MatrixClientPeg.get();
dis.dispatch({ dis.dispatch({
action: "set_right_panel_phase", action: "set_right_panel_phase",
phase: RIGHT_PANEL_PHASES.EncryptionPanel, phase: RIGHT_PANEL_PHASES.EncryptionPanel,
refireParams: { refireParams: {
verificationRequest: request, verificationRequest: request,
member: cli.getUser(request.otherUserId), member: cli.getUser(request.otherUserId),
}, },
});} else if (request.channel.deviceId && request.verifier) { });
} else if (request.channel.deviceId && request.verifier) {
// show to_device verifications in dialog still // show to_device verifications in dialog still
const IncomingSasDialog = sdk.getComponent("views.dialogs.IncomingSasDialog"); const IncomingSasDialog = sdk.getComponent("views.dialogs.IncomingSasDialog");
Modal.createTrackedDialog('Incoming Verification', '', IncomingSasDialog, { Modal.createTrackedDialog('Incoming Verification', '', IncomingSasDialog, {