Fix own cross siging trust before verification without key #514

This commit is contained in:
Ajay Bura 2022-05-07 09:50:29 +05:30
parent 0791820a6c
commit 73723ba6ba

View file

@ -28,12 +28,15 @@ 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())) {
if (!keyData) { const keyData = await accessSecretStorage('Emoji verification');
request.cancel(); if (!keyData) {
return; request.cancel();
return;
}
} }
await mx.checkOwnCrossSigningTrust();
} }
setProcess(true); setProcess(true);
await request.accept(); await request.accept();