use USK as we'll only have that around when using key sharing

pull/21833/head
Bruno Windels 2020-03-10 18:40:24 +01:00
parent e34a37102a
commit 1eb5bdf847
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}