|
@@ -10,7 +10,7 @@ import { translate } from '../../base/i18n';
|
10
|
10
|
import MultiSelectAutocomplete
|
11
|
11
|
from '../../base/react/components/web/MultiSelectAutocomplete';
|
12
|
12
|
|
13
|
|
-import { invitePeople, searchPeople } from '../functions';
|
|
13
|
+import { invitePeople, inviteRooms, searchPeople } from '../functions';
|
14
|
14
|
|
15
|
15
|
declare var interfaceConfig: Object;
|
16
|
16
|
|
|
@@ -26,6 +26,12 @@ class AddPeopleDialog extends Component {
|
26
|
26
|
* @static
|
27
|
27
|
*/
|
28
|
28
|
static propTypes = {
|
|
29
|
+ /**
|
|
30
|
+ * The {@link JitsiMeetConference} which will be used to invite "room"
|
|
31
|
+ * participants through the SIP Jibri (Video SIP gateway).
|
|
32
|
+ */
|
|
33
|
+ _conference: PropTypes.object,
|
|
34
|
+
|
29
|
35
|
/**
|
30
|
36
|
* The URL pointing to the service allowing for people invite.
|
31
|
37
|
*/
|
|
@@ -229,11 +235,17 @@ class AddPeopleDialog extends Component {
|
229
|
235
|
addToCallInProgress: true
|
230
|
236
|
});
|
231
|
237
|
|
|
238
|
+ this.props._conference
|
|
239
|
+ && inviteRooms(
|
|
240
|
+ this.props._conference,
|
|
241
|
+ this.state.inviteItems.filter(
|
|
242
|
+ i => i.type === 'videosipgw'));
|
|
243
|
+
|
232
|
244
|
invitePeople(
|
233
|
245
|
this.props._inviteServiceUrl,
|
234
|
246
|
this.props._inviteUrl,
|
235
|
247
|
this.props._jwt,
|
236
|
|
- this.state.inviteItems)
|
|
248
|
+ this.state.inviteItems.filter(i => i.type === 'user'))
|
237
|
249
|
.then(() => {
|
238
|
250
|
this.setState({
|
239
|
251
|
addToCallInProgress: false
|
|
@@ -318,6 +330,7 @@ class AddPeopleDialog extends Component {
|
318
|
330
|
* }}
|
319
|
331
|
*/
|
320
|
332
|
function _mapStateToProps(state) {
|
|
333
|
+ const { conference } = state['features/base/conference'];
|
321
|
334
|
const {
|
322
|
335
|
inviteServiceUrl,
|
323
|
336
|
peopleSearchQueryTypes,
|
|
@@ -325,6 +338,7 @@ function _mapStateToProps(state) {
|
325
|
338
|
} = state['features/base/config'];
|
326
|
339
|
|
327
|
340
|
return {
|
|
341
|
+ _conference: conference,
|
328
|
342
|
_jwt: state['features/jwt'].jwt,
|
329
|
343
|
_inviteUrl: getInviteURL(state),
|
330
|
344
|
_inviteServiceUrl: inviteServiceUrl,
|