Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Skips empty invites for video rooms. (#2251)

Дамян Минков9ddc5a0e4247
diff --git a/react/features/invite/components/AddPeopleDialog.web.js b/react/features/invite/components/AddPeopleDialog.web.js
index 1b6616d48d..cb4af975a6 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,