Skip to content

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

feat(whiteboard): prevent second navigation while collaborating

Calin-Teodor9e7c09cdf184
diff --git a/react/features/whiteboard/middleware.any.ts b/react/features/whiteboard/middleware.any.ts
index 4250025c1a..3d7a92a7cc 100644
--- a/react/features/whiteboard/middleware.any.ts
+++ b/react/features/whiteboard/middleware.any.ts
@@ -47,7 +47,12 @@ MiddlewareRegistry.register((store: IStore) => next => action => {
collabDetails: metadata[WHITEBOARD_ID].collabDetails,
collabServerUrl: generateCollabServerUrl(store.getState())
}));
- store.dispatch(setWhiteboardOpen(true));
+
+ // Prevents a second navigate() call on mobile
+ // that would reload the WebView and disconnect the active collab session.
+ if (!isWhiteboardOpen(store.getState())) {
+ store.dispatch(setWhiteboardOpen(true));
+ }
}
break;