From: Ajay Bura Date: Sun, 8 May 2022 06:56:31 +0000 (+0530) Subject: Fix emoji verificaition not working with some client X-Git-Tag: v2.0.0~1 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=7525bb78e5d17344ac7106884d2bc0c64a3b9368;p=cinny.git Fix emoji verificaition not working with some client --- diff --git a/src/app/organisms/emoji-verification/EmojiVerification.jsx b/src/app/organisms/emoji-verification/EmojiVerification.jsx index 8f08c48..6fe81cd 100644 --- a/src/app/organisms/emoji-verification/EmojiVerification.jsx +++ b/src/app/organisms/emoji-verification/EmojiVerification.jsx @@ -26,6 +26,7 @@ function EmojiVerificationContent({ data, requestClose }) { const { request, targetDevice } = data; const mx = initMatrix.matrixClient; const mountStore = useStore(); + const beginStore = useStore(); const beginVerification = async () => { if ( @@ -73,7 +74,8 @@ function EmojiVerificationContent({ data, requestClose }) { requestClose(); return; } - if (targetDevice && request.started) { + if (targetDevice && !beginStore.getItem()) { + beginStore.setItem(true); beginVerification(); } };