check .started first as it can be both .started and pending
This commit is contained in:
parent
a7de575316
commit
f8ef5bb6a5
1 changed files with 6 additions and 6 deletions
|
@ -1503,7 +1503,12 @@ export default createReactClass({
|
|||
return;
|
||||
}
|
||||
|
||||
if (request.pending) {
|
||||
if (request.started) {
|
||||
const VerificationRequestDialog = sdk.getComponent("views.dialogs.VerificationRequestDialog");
|
||||
Modal.createTrackedDialog('Incoming Verification', '', VerificationRequestDialog, {
|
||||
verificationRequest: request,
|
||||
}, null, /* priority = */ false, /* static = */ true);
|
||||
} else if (request.pending) {
|
||||
ToastStore.sharedInstance().addOrReplaceToast({
|
||||
key: 'verifreq_' + request.channel.transactionId,
|
||||
title: _t("Verification Request"),
|
||||
|
@ -1511,11 +1516,6 @@ export default createReactClass({
|
|||
props: {request},
|
||||
component: sdk.getComponent("toasts.VerificationRequestToast"),
|
||||
});
|
||||
} else if (request.started) {
|
||||
const VerificationRequestDialog = sdk.getComponent("views.dialogs.VerificationRequestDialog");
|
||||
Modal.createTrackedDialog('Incoming Verification', '', VerificationRequestDialog, {
|
||||
verificationRequest: request,
|
||||
}, null, /* priority = */ false, /* static = */ true);
|
||||
}
|
||||
});
|
||||
// Fire the tinter right on startup to ensure the default theme is applied
|
||||
|
|
Loading…
Reference in a new issue