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:
Saúl Ibarra Corretgé 2019-04-29 22:09:50 +02:00 committed by Saúl Ibarra Corretgé
parent 34dcbd991e
commit 7b78fa45f4
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}
/**