Fix own cross siging trust before verification without key #514
This commit is contained in:
parent
0791820a6c
commit
73723ba6ba
1 changed files with 8 additions and 5 deletions
|
@ -28,13 +28,16 @@ function EmojiVerificationContent({ data, requestClose }) {
|
||||||
const mountStore = useStore();
|
const mountStore = useStore();
|
||||||
|
|
||||||
const beginVerification = async () => {
|
const beginVerification = async () => {
|
||||||
if (isCrossVerified(mx.deviceId) && !hasPrivateKey(getDefaultSSKey())) {
|
if (mx.getCrossSigningId() === null && isCrossVerified(mx.deviceId)) {
|
||||||
const keyData = await accessSecretStorage('Session verification');
|
if (!hasPrivateKey(getDefaultSSKey())) {
|
||||||
|
const keyData = await accessSecretStorage('Emoji verification');
|
||||||
if (!keyData) {
|
if (!keyData) {
|
||||||
request.cancel();
|
request.cancel();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
await mx.checkOwnCrossSigningTrust();
|
||||||
|
}
|
||||||
setProcess(true);
|
setProcess(true);
|
||||||
await request.accept();
|
await request.accept();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue