Merge pull request #2607 from matrix-org/dbkr/sas_not_working_prompt
Add legacy verification button on waitpull/21833/head
commit
81ab955984
|
@ -60,6 +60,11 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
_onSwitchToLegacyClick = () => {
|
_onSwitchToLegacyClick = () => {
|
||||||
|
if (this._verifier) {
|
||||||
|
this._verifier.removeListener('show_sas', this._onVerifierShowSas);
|
||||||
|
this._verifier.cancel('User cancel');
|
||||||
|
this._verifier = null;
|
||||||
|
}
|
||||||
this.setState({mode: MODE_LEGACY});
|
this.setState({mode: MODE_LEGACY});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,11 +189,21 @@ export default class DeviceVerifyDialog extends React.Component {
|
||||||
|
|
||||||
_renderSasVerificationPhaseWaitAccept() {
|
_renderSasVerificationPhaseWaitAccept() {
|
||||||
const Spinner = sdk.getComponent("views.elements.Spinner");
|
const Spinner = sdk.getComponent("views.elements.Spinner");
|
||||||
|
const AccessibleButton = sdk.getComponent('views.elements.AccessibleButton');
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Spinner />
|
<Spinner />
|
||||||
<p>{_t("Waiting for partner to accept...")}</p>
|
<p>{_t("Waiting for partner to accept...")}</p>
|
||||||
|
<p>{_t(
|
||||||
|
"Nothing appearing? Not all clients support interactive verification yet. " +
|
||||||
|
"<button>Use legacy verification</button>.",
|
||||||
|
{}, {button: sub => <AccessibleButton element='span' className="mx_linkButton"
|
||||||
|
onClick={this._onSwitchToLegacyClick}
|
||||||
|
>
|
||||||
|
{sub}
|
||||||
|
</AccessibleButton>},
|
||||||
|
)}</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1061,6 +1061,7 @@
|
||||||
"Verify by comparing a short text string.": "Verify by comparing a short text string.",
|
"Verify by comparing a short text string.": "Verify by comparing a short text string.",
|
||||||
"Begin Verifying": "Begin Verifying",
|
"Begin Verifying": "Begin Verifying",
|
||||||
"Waiting for partner to accept...": "Waiting for partner to accept...",
|
"Waiting for partner to accept...": "Waiting for partner to accept...",
|
||||||
|
"Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.": "Nothing appearing? Not all clients support interactive verification yet. <button>Use legacy verification</button>.",
|
||||||
"Waiting for %(userId)s to confirm...": "Waiting for %(userId)s to confirm...",
|
"Waiting for %(userId)s to confirm...": "Waiting for %(userId)s to confirm...",
|
||||||
"Use two-way text verification": "Use two-way text verification",
|
"Use two-way text verification": "Use two-way text verification",
|
||||||
"To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:": "To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:",
|
"To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:": "To verify that this device can be trusted, please contact its owner using some other means (e.g. in person or a phone call) and ask them whether the key they see in their User Settings for this device matches the key below:",
|
||||||
|
|
Loading…
Reference in New Issue