Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(rn,lobby) fix lobby not showing up on subsequent tries

Saúl Ibarra Corretgéf503bd7352f4
diff --git a/react/features/lobby/actions.native.js b/react/features/lobby/actions.native.js
index e95a226a12..b8528f9733 100644
--- a/react/features/lobby/actions.native.js
+++ b/react/features/lobby/actions.native.js
@@ -1,9 +1,9 @@
-// @flow
-
-import { type Dispatch } from 'redux';
+import { batch } from 'react-redux';
import { appNavigate } from '../app/actions';
+import { hideLobbyScreen, setKnockingState } from './actions.any';
+
export * from './actions.any';
/**
@@ -12,8 +12,11 @@ export * from './actions.any';
* @returns {Function}
*/
export function cancelKnocking() {
- return async (dispatch: Dispatch<any>) => {
- dispatch(appNavigate(undefined));
+ return dispatch => {
+ batch(() => {
+ dispatch(setKnockingState(false));
+ dispatch(hideLobbyScreen());
+ dispatch(appNavigate(undefined));
+ });
};
}
-