From a1b7696b91caacd7d957e069e40d6e0d643a4d89 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Thu, 30 Mar 2023 17:08:23 +0200 Subject: [PATCH] fix lint --- src/domain/session/rightpanel/MemberDetailsViewModel.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/domain/session/rightpanel/MemberDetailsViewModel.js b/src/domain/session/rightpanel/MemberDetailsViewModel.js index 52cbc7b8..3b303d04 100644 --- a/src/domain/session/rightpanel/MemberDetailsViewModel.js +++ b/src/domain/session/rightpanel/MemberDetailsViewModel.js @@ -46,7 +46,6 @@ export class MemberDetailsViewModel extends ViewModel { get trustDescription() { switch (this._userTrust?.get()) { - case undefined: return this.i18n`Please wait…`; case UserTrust.Trusted: return this.i18n`You have verified this user. This user has verified all of their sessions.`; case UserTrust.UserNotSigned: return this.i18n`You have not verified this user.`; case UserTrust.UserSignatureMismatch: return this.i18n`You appear to have signed this user, but the signature is invalid.`; @@ -54,6 +53,9 @@ export class MemberDetailsViewModel extends ViewModel { case UserTrust.UserDeviceSignatureMismatch: return this.i18n`This user has a session signature that is invalid.`; case UserTrust.UserSetupError: return this.i18n`This user hasn't set up cross-signing correctly`; case UserTrust.OwnSetupError: return this.i18n`Cross-signing wasn't set up correctly on your side.`; + case undefined: + default: // adding default as well because jslint can't check for switch exhaustiveness + return this.i18n`Please wait…`; } } @@ -153,7 +155,7 @@ export class MemberDetailsViewModel extends ViewModel { if (crossSigning) { this.logger.run("MemberDetailsViewModel.observeUserTrust", log => { this._userTrust = crossSigning.observeUserTrust(this.userId, log); - this._userTrustSubscription = this.track(this._userTrust.subscribe(trust => { + this._userTrustSubscription = this.track(this._userTrust.subscribe(() => { this.emitChange("trustShieldColor"); })); });