feat(lobby): deleted knocking participant api event (#12940)

feat(lobby): make sure that that the knocking participant event is always fired
This commit is contained in:
Calinteodor 2023-02-21 13:55:03 +02:00 committed by GitHub
parent f8af9c4fae
commit b4bf363237
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -134,6 +134,13 @@ StateListenerRegistry.register(
const isParticipantsPaneVisible = getParticipantsPaneOpen(getState());
if (typeof APP !== 'undefined') {
APP.API.notifyKnockingParticipant({
id,
name
});
}
if (isParticipantsPaneVisible || navigator.product === 'ReactNative') {
return;
}
@ -142,13 +149,6 @@ StateListenerRegistry.register(
dispatch,
getState
});
if (typeof APP !== 'undefined') {
APP.API.notifyKnockingParticipant({
id,
name
});
}
});
});