瀏覽代碼

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 年之前
父節點
當前提交
7b78fa45f4
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. 2
    1
      react/features/invite/functions.js

+ 2
- 1
react/features/invite/functions.js 查看文件

@@ -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
 /**

Loading…
取消
儲存