Fix typos and comments

This commit is contained in:
RMidhunSuresh 2023-06-14 16:16:36 +05:30
parent 3308a7e374
commit 1747186843
3 changed files with 2 additions and 3 deletions

View File

@ -77,7 +77,6 @@ export class DeviceMessageHandler extends EventEmitter{
} }
async afterSyncCompleted(decryptionResults, deviceTracker, hsApi, log) { async afterSyncCompleted(decryptionResults, deviceTracker, hsApi, log) {
// this._emitEncryptedEvents(decryptionResults);
await log.wrap("Verifying fingerprint of encrypted toDevice messages", async (log) => { await log.wrap("Verifying fingerprint of encrypted toDevice messages", async (log) => {
for (const result of decryptionResults) { for (const result of decryptionResults) {
const sender = result.event.sender; const sender = result.event.sender;

View File

@ -349,7 +349,7 @@ export class CrossSigning {
} }
async isOurUserDeviceTrusted(device: DeviceKey, log?: ILogItem): Promise<boolean> { async isOurUserDeviceTrusted(device: DeviceKey, log?: ILogItem): Promise<boolean> {
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); const ourSSK = await this.deviceTracker.getCrossSigningKeyForUser(this.ownUserId, KeyUsage.SelfSigning, this.hsApi, _log);
if (!ourSSK) { if (!ourSSK) {
return false; return false;

View File

@ -30,7 +30,7 @@ export class MissingKeysView extends TemplateView<MissingKeysViewModel> {
), ),
t.p( t.p(
{ className: "MissingKeysView__description" }, { 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.div({ className: "MissingKeysView__actions" }, [
t.button({ t.button({