From 17471868437da1fc79d9c1d1e390a931789214b1 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 14 Jun 2023 16:16:36 +0530 Subject: [PATCH] Fix typos and comments --- src/matrix/DeviceMessageHandler.js | 1 - src/matrix/verification/CrossSigning.ts | 2 +- .../web/ui/session/verification/stages/MissingKeysView.ts | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/matrix/DeviceMessageHandler.js b/src/matrix/DeviceMessageHandler.js index 68da1661..97423374 100644 --- a/src/matrix/DeviceMessageHandler.js +++ b/src/matrix/DeviceMessageHandler.js @@ -77,7 +77,6 @@ export class DeviceMessageHandler extends EventEmitter{ } async afterSyncCompleted(decryptionResults, deviceTracker, hsApi, log) { - // this._emitEncryptedEvents(decryptionResults); await log.wrap("Verifying fingerprint of encrypted toDevice messages", async (log) => { for (const result of decryptionResults) { const sender = result.event.sender; diff --git a/src/matrix/verification/CrossSigning.ts b/src/matrix/verification/CrossSigning.ts index 9987db31..77238951 100644 --- a/src/matrix/verification/CrossSigning.ts +++ b/src/matrix/verification/CrossSigning.ts @@ -349,7 +349,7 @@ export class CrossSigning { } async isOurUserDeviceTrusted(device: DeviceKey, log?: ILogItem): Promise { - return await this.platform.logger.wrapOrRun(log, "CrossSigning.getDeviceTrust", async (_log) => { + return await this.platform.logger.wrapOrRun(log, "CrossSigning.isOurUserDeviceTrusted", async (_log) => { const ourSSK = await this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.SelfSigning, this.hsApi, _log); if (!ourSSK) { return false; diff --git a/src/platform/web/ui/session/verification/stages/MissingKeysView.ts b/src/platform/web/ui/session/verification/stages/MissingKeysView.ts index 2bf5d609..4ee7fc64 100644 --- a/src/platform/web/ui/session/verification/stages/MissingKeysView.ts +++ b/src/platform/web/ui/session/verification/stages/MissingKeysView.ts @@ -30,7 +30,7 @@ export class MissingKeysView extends TemplateView { ), t.p( { className: "MissingKeysView__description" }, - vm.i18n`Some keys needed for verification is missing. You can fix this by enabling key backup in settings.` + vm.i18n`Some keys needed for verification are missing. You can fix this by enabling key backup in settings.` ), t.div({ className: "MissingKeysView__actions" }, [ t.button({