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

This commit is contained in:
Tudor-Ovidiu Avram 2021-09-28 15:31:50 +03:00 committed by Дамян Минков
parent 989303f5d2
commit e3ac52908a
1 changed files with 3 additions and 1 deletions

View File

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