pull/21833/head
Bruno Windels 2020-03-19 16:35:41 +01:00
parent 073c2c525f
commit b97b887305
2 changed files with 7 additions and 5 deletions

View File

@ -46,7 +46,6 @@ export default class ManualDeviceKeyVerificationDialog extends React.Component {
render() {
const QuestionDialog = sdk.getComponent("dialogs.QuestionDialog");
const AccessibleButton = sdk.getComponent('views.elements.AccessibleButton');
let text;
if (MatrixClientPeg.get().getUserId() === this.props.userId) {

View File

@ -82,10 +82,13 @@ export async function verifyDevice(user, device) {
});
} else if (action === "legacy") {
const ManualDeviceKeyVerificationDialog = sdk.getComponent("dialogs.ManualDeviceKeyVerificationDialog");
Modal.createTrackedDialog("Legacy verify session", "legacy verify session", ManualDeviceKeyVerificationDialog, {
userId: user.userId,
device,
});
Modal.createTrackedDialog("Legacy verify session", "legacy verify session",
ManualDeviceKeyVerificationDialog,
{
userId: user.userId,
device,
},
);
}
},
});