Skip to content

Commit

Permalink
Fix emoji verificaition not working with some client
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed May 8, 2022
1 parent 2075a57 commit 7525bb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/organisms/emoji-verification/EmojiVerification.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -73,7 +74,8 @@ function EmojiVerificationContent({ data, requestClose }) {
requestClose();
return;
}
if (targetDevice && request.started) {
if (targetDevice && !beginStore.getItem()) {
beginStore.setItem(true);
beginVerification();
}
};
Expand Down

0 comments on commit 7525bb7

Please sign in to comment.