Check cross-signing cached keys when showing setup button

pull/21833/head
J. Ryan Stinnett 2020-09-16 13:20:45 +01:00
parent 6130d9e882
commit 550a53e49c
1 changed files with 8 additions and 2 deletions

View File

@ -187,12 +187,18 @@ export default class CrossSigningPanel extends React.PureComponent {
}
const keysExistAnywhere = (
crossSigningPublicKeysOnDevice ||
crossSigningPrivateKeysInStorage ||
crossSigningPublicKeysOnDevice
masterPrivateKeyCached ||
selfSigningPrivateKeyCached ||
userSigningPrivateKeyCached
);
const keysExistEverywhere = (
crossSigningPublicKeysOnDevice &&
crossSigningPrivateKeysInStorage &&
crossSigningPublicKeysOnDevice
masterPrivateKeyCached &&
selfSigningPrivateKeyCached &&
userSigningPrivateKeyCached
);
const actions = [];