diff --git a/src/components/views/dialogs/DeviceVerifyDialog.js b/src/components/views/dialogs/DeviceVerifyDialog.js index 47ee73c61c..269facd107 100644 --- a/src/components/views/dialogs/DeviceVerifyDialog.js +++ b/src/components/views/dialogs/DeviceVerifyDialog.js @@ -60,6 +60,11 @@ export default class DeviceVerifyDialog extends React.Component { } _onSwitchToLegacyClick = () => { + if (this._verifier) { + this._verifier.removeListener('show_sas', this._onVerifierShowSas); + this._verifier.cancel('User cancel'); + this._verifier = null; + } this.setState({mode: MODE_LEGACY}); } @@ -184,11 +189,21 @@ export default class DeviceVerifyDialog extends React.Component { _renderSasVerificationPhaseWaitAccept() { const Spinner = sdk.getComponent("views.elements.Spinner"); + const AccessibleButton = sdk.getComponent('views.elements.AccessibleButton'); return (

{_t("Waiting for partner to accept...")}

+

{_t( + "Nothing appearing? Not all clients support interactive verification yet. " + + ".", + {}, {button: sub => + {sub} + } + )}

); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index f48e306641..3cc6e71436 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1061,6 +1061,7 @@ "Verify by comparing a short text string.": "Verify by comparing a short text string.", "Begin Verifying": "Begin Verifying", "Waiting for partner to accept...": "Waiting for partner to accept...", + "Nothing appearing? Not all clients support interactive verification yet. .": "Nothing appearing? Not all clients support interactive verification yet. .", "Waiting for %(userId)s to confirm...": "Waiting for %(userId)s to confirm...", "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:",