From 997d6e12811015f3c60d3813f1018fd9d5ac10e8 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 8 Mar 2021 05:08:01 +0000 Subject: [PATCH] lint --- src/components/structures/auth/SetupEncryptionBody.js | 4 +--- src/stores/SetupEncryptionStore.js | 5 ++--- src/toasts/UnverifiedSessionToast.ts | 10 ++++------ 3 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/components/structures/auth/SetupEncryptionBody.js b/src/components/structures/auth/SetupEncryptionBody.js index d2b3fbd3b9..d40192f9c1 100644 --- a/src/components/structures/auth/SetupEncryptionBody.js +++ b/src/components/structures/auth/SetupEncryptionBody.js @@ -157,13 +157,11 @@ export default class SetupEncryptionBody extends React.Component { ; } - const brand = SdkConfig.get().brand; - return (

{_t( "Verify this login to access your encrypted messages and " + - "prove to others that this login is really you." + "prove to others that this login is really you.", )}

diff --git a/src/stores/SetupEncryptionStore.js b/src/stores/SetupEncryptionStore.js index 525678f9a3..fdabfa8019 100644 --- a/src/stores/SetupEncryptionStore.js +++ b/src/stores/SetupEncryptionStore.js @@ -92,15 +92,14 @@ export class SetupEncryptionStore extends EventEmitter { this.hasDevicesToVerifyAgainst = cli.getStoredDevicesForUser(cli.getUserId()).some( device => device.getIdentityKey() && - (!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id)) + (!dehydratedDevice || (device.deviceId != dehydratedDevice.device_id)), ); if (!this.hasDevicesToVerifyAgainst && !this.keyInfo) { // skip before we can even render anything. // XXX: this causes a dialog box flash this.phase = PHASE_FINISHED; - } - else { + } else { this.phase = PHASE_INTRO; } this.emit("update"); diff --git a/src/toasts/UnverifiedSessionToast.ts b/src/toasts/UnverifiedSessionToast.ts index 32635e689a..d375ef6112 100644 --- a/src/toasts/UnverifiedSessionToast.ts +++ b/src/toasts/UnverifiedSessionToast.ts @@ -17,9 +17,7 @@ limitations under the License. import { _t } from '../languageHandler'; import dis from "../dispatcher/dispatcher"; import { MatrixClientPeg } from '../MatrixClientPeg'; -import Modal from '../Modal'; import DeviceListener from '../DeviceListener'; -import NewSessionReviewDialog from '../components/views/dialogs/NewSessionReviewDialog'; import ToastStore from "../stores/ToastStore"; import GenericToast from "../components/views/toasts/GenericToast"; import { Action } from "../dispatcher/actions"; @@ -53,10 +51,10 @@ export const showToast = async (deviceId: string) => { props: { description: _t( "A new login is accessing your account: %(name)s (%(deviceID)s) from %(IP)s", { - name: device.display_name, - deviceID: deviceId, - IP: device.last_seen_ip, - } + name: device.display_name, + deviceID: deviceId, + IP: device.last_seen_ip, + }, ), acceptLabel: _t("Check your devices"), onAccept,