mirror of https://github.com/vector-im/riot-web
Show master key cache status in Settings
parent
060f2cf54f
commit
4c1956a3c2
|
@ -32,6 +32,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
error: null,
|
error: null,
|
||||||
crossSigningPublicKeysOnDevice: false,
|
crossSigningPublicKeysOnDevice: false,
|
||||||
crossSigningPrivateKeysInStorage: false,
|
crossSigningPrivateKeysInStorage: false,
|
||||||
|
masterPrivateKeyCached: false,
|
||||||
selfSigningPrivateKeyCached: false,
|
selfSigningPrivateKeyCached: false,
|
||||||
userSigningPrivateKeyCached: false,
|
userSigningPrivateKeyCached: false,
|
||||||
sessionBackupKeyCached: false,
|
sessionBackupKeyCached: false,
|
||||||
|
@ -78,6 +79,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
const secretStorage = cli._crypto._secretStorage;
|
const secretStorage = cli._crypto._secretStorage;
|
||||||
const crossSigningPublicKeysOnDevice = crossSigning.getId();
|
const crossSigningPublicKeysOnDevice = crossSigning.getId();
|
||||||
const crossSigningPrivateKeysInStorage = await crossSigning.isStoredInSecretStorage(secretStorage);
|
const crossSigningPrivateKeysInStorage = await crossSigning.isStoredInSecretStorage(secretStorage);
|
||||||
|
const masterPrivateKeyCached = !!(pkCache && await pkCache.getCrossSigningKeyCache("master"));
|
||||||
const selfSigningPrivateKeyCached = !!(pkCache && await pkCache.getCrossSigningKeyCache("self_signing"));
|
const selfSigningPrivateKeyCached = !!(pkCache && await pkCache.getCrossSigningKeyCache("self_signing"));
|
||||||
const userSigningPrivateKeyCached = !!(pkCache && await pkCache.getCrossSigningKeyCache("user_signing"));
|
const userSigningPrivateKeyCached = !!(pkCache && await pkCache.getCrossSigningKeyCache("user_signing"));
|
||||||
const sessionBackupKeyFromCache = await cli._crypto.getSessionBackupPrivateKey();
|
const sessionBackupKeyFromCache = await cli._crypto.getSessionBackupPrivateKey();
|
||||||
|
@ -91,6 +93,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
this.setState({
|
this.setState({
|
||||||
crossSigningPublicKeysOnDevice,
|
crossSigningPublicKeysOnDevice,
|
||||||
crossSigningPrivateKeysInStorage,
|
crossSigningPrivateKeysInStorage,
|
||||||
|
masterPrivateKeyCached,
|
||||||
selfSigningPrivateKeyCached,
|
selfSigningPrivateKeyCached,
|
||||||
userSigningPrivateKeyCached,
|
userSigningPrivateKeyCached,
|
||||||
sessionBackupKeyCached,
|
sessionBackupKeyCached,
|
||||||
|
@ -140,6 +143,7 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
error,
|
error,
|
||||||
crossSigningPublicKeysOnDevice,
|
crossSigningPublicKeysOnDevice,
|
||||||
crossSigningPrivateKeysInStorage,
|
crossSigningPrivateKeysInStorage,
|
||||||
|
masterPrivateKeyCached,
|
||||||
selfSigningPrivateKeyCached,
|
selfSigningPrivateKeyCached,
|
||||||
userSigningPrivateKeyCached,
|
userSigningPrivateKeyCached,
|
||||||
sessionBackupKeyCached,
|
sessionBackupKeyCached,
|
||||||
|
@ -235,6 +239,10 @@ export default class CrossSigningPanel extends React.PureComponent {
|
||||||
<td>{_t("Cross-signing private keys:")}</td>
|
<td>{_t("Cross-signing private keys:")}</td>
|
||||||
<td>{crossSigningPrivateKeysInStorage ? _t("in secret storage") : _t("not found")}</td>
|
<td>{crossSigningPrivateKeysInStorage ? _t("in secret storage") : _t("not found")}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{_t("Master private key:")}</td>
|
||||||
|
<td>{masterPrivateKeyCached ? _t("cached locally") : _t("not found locally")}</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{_t("Self signing private key:")}</td>
|
<td>{_t("Self signing private key:")}</td>
|
||||||
<td>{selfSigningPrivateKeyCached ? _t("cached locally") : _t("not found locally")}</td>
|
<td>{selfSigningPrivateKeyCached ? _t("cached locally") : _t("not found locally")}</td>
|
||||||
|
|
|
@ -653,9 +653,10 @@
|
||||||
"not found": "not found",
|
"not found": "not found",
|
||||||
"Cross-signing private keys:": "Cross-signing private keys:",
|
"Cross-signing private keys:": "Cross-signing private keys:",
|
||||||
"in secret storage": "in secret storage",
|
"in secret storage": "in secret storage",
|
||||||
"Self signing private key:": "Self signing private key:",
|
"Master private key:": "Master private key:",
|
||||||
"cached locally": "cached locally",
|
"cached locally": "cached locally",
|
||||||
"not found locally": "not found locally",
|
"not found locally": "not found locally",
|
||||||
|
"Self signing private key:": "Self signing private key:",
|
||||||
"User signing private key:": "User signing private key:",
|
"User signing private key:": "User signing private key:",
|
||||||
"Session backup key:": "Session backup key:",
|
"Session backup key:": "Session backup key:",
|
||||||
"Secret storage public key:": "Secret storage public key:",
|
"Secret storage public key:": "Secret storage public key:",
|
||||||
|
|
Loading…
Reference in New Issue