Skip to content

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

invite: don't consider "add people" enabled if there is no search URL

Saúl Ibarra Corretgé7b78fa45f48c
diff --git a/react/features/invite/functions.js b/react/features/invite/functions.js
index 04e544f4da..da54ad7f69 100644
--- a/react/features/invite/functions.js
+++ b/react/features/invite/functions.js
@@ -297,9 +297,10 @@ export function invitePeopleAndChatRooms( // eslint-disable-line max-params
* @returns {boolean} Indication of whether adding people is currently enabled.
*/
export function isAddPeopleEnabled(state: Object): boolean {
+ const { peopleSearchUrl } = state['features/base/config'];
const { isGuest } = state['features/base/jwt'];
- return !isGuest;
+ return !isGuest && Boolean(peopleSearchUrl);
}
/**