Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
7b78fa45f4
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt