From 1eb5bdf847f2c5badd014e865f71e297c20869d6 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 10 Mar 2020 18:40:24 +0100 Subject: [PATCH] use USK as we'll only have that around when using key sharing --- src/verification.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/verification.js b/src/verification.js index cdce9c6d32..235828dc92 100644 --- a/src/verification.js +++ b/src/verification.js @@ -29,8 +29,8 @@ export async function enable4SIfNeeded() { if (!cli.isCryptoEnabled() || !SettingsStore.isFeatureEnabled("feature_cross_signing")) { return false; } - const masterPK = cli.getCrossSigningId(); - if (!masterPK) { + const usk = cli.getCrossSigningId("user_signing"); + if (!usk) { await accessSecretStorage(); return false; }