Fix emoji verificaition not working with some client

This commit is contained in:
Ajay Bura 2022-05-08 12:26:31 +05:30
parent 2075a572fe
commit 7525bb78e5

View file

@ -26,6 +26,7 @@ function EmojiVerificationContent({ data, requestClose }) {
const { request, targetDevice } = data; const { request, targetDevice } = data;
const mx = initMatrix.matrixClient; const mx = initMatrix.matrixClient;
const mountStore = useStore(); const mountStore = useStore();
const beginStore = useStore();
const beginVerification = async () => { const beginVerification = async () => {
if ( if (
@ -73,7 +74,8 @@ function EmojiVerificationContent({ data, requestClose }) {
requestClose(); requestClose();
return; return;
} }
if (targetDevice && request.started) { if (targetDevice && !beginStore.getItem()) {
beginStore.setItem(true);
beginVerification(); beginVerification();
} }
}; };