Bläddra i källkod

Skips empty invites for video rooms. (#2251)

j8
Дамян Минков 7 år sedan
förälder
incheckning
9ddc5a0e42
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5
    4
      react/features/invite/components/AddPeopleDialog.web.js

+ 5
- 4
react/features/invite/components/AddPeopleDialog.web.js Visa fil

@@ -220,11 +220,12 @@ class AddPeopleDialog extends Component<*, *> {
220 220
                 addToCallInProgress: true
221 221
             });
222 222
 
223
+            const vrooms = this.state.inviteItems.filter(
224
+                i => i.type === 'videosipgw');
225
+
223 226
             this.props._conference
224
-                && this.props.inviteVideoRooms(
225
-                        this.props._conference,
226
-                        this.state.inviteItems.filter(
227
-                            i => i.type === 'videosipgw'));
227
+                && vrooms.length > 0
228
+                && this.props.inviteVideoRooms(this.props._conference, vrooms);
228 229
 
229 230
             invitePeopleAndChatRooms(
230 231
                 this.props._inviteServiceUrl,

Laddar…
Avbryt
Spara