Skip to content

Commit 73723ba

Browse files
committed
Fix own cross siging trust before verification without key cinnyapp#514
1 parent 0791820 commit 73723ba

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/app/organisms/emoji-verification/EmojiVerification.jsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ function EmojiVerificationContent({ data, requestClose }) {
2828
const mountStore = useStore();
2929

3030
const beginVerification = async () => {
31-
if (isCrossVerified(mx.deviceId) && !hasPrivateKey(getDefaultSSKey())) {
32-
const keyData = await accessSecretStorage('Session verification');
33-
if (!keyData) {
34-
request.cancel();
35-
return;
31+
if (mx.getCrossSigningId() === null && isCrossVerified(mx.deviceId)) {
32+
if (!hasPrivateKey(getDefaultSSKey())) {
33+
const keyData = await accessSecretStorage('Emoji verification');
34+
if (!keyData) {
35+
request.cancel();
36+
return;
37+
}
3638
}
39+
await mx.checkOwnCrossSigningTrust();
3740
}
3841
setProcess(true);
3942
await request.accept();

0 commit comments

Comments
 (0)