invite: don't consider "add people" enabled if there is no search URL
This avoids showing the + button when there is no service configured, ie with the default Jitsi Meet install.
This commit is contained in:
parent
34dcbd991e
commit
7b78fa45f4
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue