Selaa lähdekoodia

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.
master
Saúl Ibarra Corretgé 6 vuotta sitten
vanhempi
commit
7b78fa45f4
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js Näytä tiedosto

297
  * @returns {boolean} Indication of whether adding people is currently enabled.
297
  * @returns {boolean} Indication of whether adding people is currently enabled.
298
  */
298
  */
299
 export function isAddPeopleEnabled(state: Object): boolean {
299
 export function isAddPeopleEnabled(state: Object): boolean {
300
+    const { peopleSearchUrl } = state['features/base/config'];
300
     const { isGuest } = state['features/base/jwt'];
301
     const { isGuest } = state['features/base/jwt'];
301
 
302
 
302
-    return !isGuest;
303
+    return !isGuest && Boolean(peopleSearchUrl);
303
 }
304
 }
304
 
305
 
305
 /**
306
 /**

Loading…
Peruuta
Tallenna