From 9ddc5a0e42470d4da483d770270c50c89f328f83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Mon, 4 Dec 2017 22:59:28 -0600 Subject: [PATCH] Skips empty invites for video rooms. (#2251) --- react/features/invite/components/AddPeopleDialog.web.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/react/features/invite/components/AddPeopleDialog.web.js b/react/features/invite/components/AddPeopleDialog.web.js index 1b6616d48..cb4af975a 100644 --- a/react/features/invite/components/AddPeopleDialog.web.js +++ b/react/features/invite/components/AddPeopleDialog.web.js @@ -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,