瀏覽代碼

fix(invite) fix video rooms not being displayed in invite search

master
Tudor-Ovidiu Avram 3 年之前
父節點
當前提交
e3ac52908a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      react/features/invite/components/add-people-dialog/web/InviteContactsForm.js

+ 3
- 1
react/features/invite/components/add-people-dialog/web/InviteContactsForm.js 查看文件

@@ -315,7 +315,9 @@ class InviteContactsForm extends AbstractAddPeopleDialog<Props, State> {
315 315
      */
316 316
     _parseQueryResults(response = []) {
317 317
         const { t, _dialOutEnabled } = this.props;
318
-        const users = response.filter(item => item.type === INVITE_TYPES.USER);
318
+
319
+        const userTypes = [ INVITE_TYPES.USER, INVITE_TYPES.VIDEO_ROOM, INVITE_TYPES.ROOM ];
320
+        const users = response.filter(item => userTypes.includes(item.type));
319 321
         const userDisplayItems = [];
320 322
 
321 323
         for (const user of users) {

Loading…
取消
儲存