Fix emoji verificaition not working with some client
This commit is contained in:
parent
2075a572fe
commit
7525bb78e5
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue