From b4bf36323700da18893b92c35971109de68cabd7 Mon Sep 17 00:00:00 2001 From: Calinteodor Date: Tue, 21 Feb 2023 13:55:03 +0200 Subject: [PATCH] feat(lobby): deleted knocking participant api event (#12940) feat(lobby): make sure that that the knocking participant event is always fired --- react/features/lobby/middleware.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/react/features/lobby/middleware.ts b/react/features/lobby/middleware.ts index fd937c826..0cd03e464 100644 --- a/react/features/lobby/middleware.ts +++ b/react/features/lobby/middleware.ts @@ -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 - }); - } }); });