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(visitors): Check for preferVisitor from redux.

damencho7fbf47c6f312
diff --git a/react/features/visitors/middleware.ts b/react/features/visitors/middleware.ts
index 20292a47d1..bfb89c6894 100644
--- a/react/features/visitors/middleware.ts
+++ b/react/features/visitors/middleware.ts
@@ -160,8 +160,8 @@ MiddlewareRegistry.register(({ dispatch, getState }) => next => action => {
break;
}
- const { hosts, preferVisitor, visitors: visitorsConfig } = getState()['features/base/config'];
- const { locationURL } = getState()['features/base/connection'];
+ const { hosts, visitors: visitorsConfig } = getState()['features/base/config'];
+ const { locationURL, preferVisitor } = getState()['features/base/connection'];
if (!visitorsConfig?.queueService || !locationURL || !preferVisitor) {
break;