Skips empty invites for video rooms. (#2251)

This commit is contained in:
Дамян Минков 2017-12-04 22:59:28 -06:00 committed by virtuacoplenny
parent d79995e14c
commit 9ddc5a0e42
1 changed files with 5 additions and 4 deletions

View File

@ -220,11 +220,12 @@ class AddPeopleDialog extends Component<*, *> {
addToCallInProgress: true
});
const vrooms = this.state.inviteItems.filter(
i => i.type === 'videosipgw');
this.props._conference
&& this.props.inviteVideoRooms(
this.props._conference,
this.state.inviteItems.filter(
i => i.type === 'videosipgw'));
&& vrooms.length > 0
&& this.props.inviteVideoRooms(this.props._conference, vrooms);
invitePeopleAndChatRooms(
this.props._inviteServiceUrl,