From 38c13509fd21ba6152f2d9b83eb07a53275322be Mon Sep 17 00:00:00 2001 From: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Date: Mon, 15 May 2023 19:30:43 +0100 Subject: [PATCH] Use new `getCrossSigningKeyId` instead of old `getCrossSigningId` (#10885) * Use new `getCrossSigningKeyId` instead of old `getCrossSigningId` * Fix type error --- src/DeviceListener.ts | 2 +- src/rageshake/submit-rageshake.ts | 2 +- src/stores/SetupEncryptionStore.ts | 10 +++++----- src/verification.ts | 8 ++++---- test/DeviceListener-test.ts | 8 ++++---- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/DeviceListener.ts b/src/DeviceListener.ts index b1b3208230..e01bc54b60 100644 --- a/src/DeviceListener.ts +++ b/src/DeviceListener.ts @@ -289,7 +289,7 @@ export default class DeviceListener { // cross signing isn't enabled - nag to enable it // There are 3 different toasts for: - if (!cli.getCrossSigningId() && cli.getStoredCrossSigningForUser(cli.getUserId()!)) { + if (!(await crypto.getCrossSigningKeyId()) && cli.getStoredCrossSigningForUser(cli.getUserId()!)) { // Cross-signing on account but this device doesn't trust the master key (verify this session) showSetupEncryptionToast(SetupKind.VERIFY_THIS_SESSION); this.checkKeyBackupStatus(); diff --git a/src/rageshake/submit-rageshake.ts b/src/rageshake/submit-rageshake.ts index b62688325f..47b76625cd 100644 --- a/src/rageshake/submit-rageshake.ts +++ b/src/rageshake/submit-rageshake.ts @@ -87,7 +87,7 @@ async function collectBugReport(opts: IOpts = {}, gzipLogs = true): Promise