stick to IncomingSasDialog as VerificationRequestDialog doesn't show sender yet, makes e2e tests fail

This commit is contained in:
Bruno Windels 2020-03-06 17:22:56 +01:00
parent f8ef5bb6a5
commit b0617f10e8

View file

@ -1503,10 +1503,10 @@ export default createReactClass({
return;
}
if (request.started) {
const VerificationRequestDialog = sdk.getComponent("views.dialogs.VerificationRequestDialog");
Modal.createTrackedDialog('Incoming Verification', '', VerificationRequestDialog, {
verificationRequest: request,
if (request.verifier) {
const IncomingSasDialog = sdk.getComponent("views.dialogs.IncomingSasDialog");
Modal.createTrackedDialog('Incoming Verification', '', IncomingSasDialog, {
verifier: request.verifier,
}, null, /* priority = */ false, /* static = */ true);
} else if (request.pending) {
ToastStore.sharedInstance().addOrReplaceToast({