|
@@ -36,9 +36,9 @@ type Props = {
|
36
|
36
|
_dialIn: Object,
|
37
|
37
|
|
38
|
38
|
/**
|
39
|
|
- * Whether or not invite should be hidden.
|
|
39
|
+ * Whether or not invite contacts should be visible.
|
40
|
40
|
*/
|
41
|
|
- _hideInviteContacts: boolean,
|
|
41
|
+ _inviteContactsVisible: boolean,
|
42
|
42
|
|
43
|
43
|
/**
|
44
|
44
|
* The current url of the conference to be copied onto the clipboard.
|
|
@@ -79,7 +79,7 @@ type Props = {
|
79
|
79
|
function AddPeopleDialog({
|
80
|
80
|
_conferenceName,
|
81
|
81
|
_dialIn,
|
82
|
|
- _hideInviteContacts,
|
|
82
|
+ _inviteContactsVisible,
|
83
|
83
|
_inviteUrl,
|
84
|
84
|
_liveStreamViewURL,
|
85
|
85
|
_localParticipantName,
|
|
@@ -146,7 +146,7 @@ function AddPeopleDialog({
|
146
|
146
|
titleKey = 'addPeople.inviteMorePrompt'
|
147
|
147
|
width = { 'small' }>
|
148
|
148
|
<div className = 'invite-more-dialog'>
|
149
|
|
- { !_hideInviteContacts && <InviteContactsSection /> }
|
|
149
|
+ { _inviteContactsVisible && <InviteContactsSection /> }
|
150
|
150
|
<CopyMeetingLinkSection url = { _inviteUrl } />
|
151
|
151
|
<InviteByEmailSection
|
152
|
152
|
inviteSubject = { inviteSubject }
|
|
@@ -183,12 +183,12 @@ function mapStateToProps(state) {
|
183
|
183
|
const { iAmRecorder } = state['features/base/config'];
|
184
|
184
|
const addPeopleEnabled = isAddPeopleEnabled(state);
|
185
|
185
|
const dialOutEnabled = isDialOutEnabled(state);
|
|
186
|
+ const hideInviteContacts = iAmRecorder || (!addPeopleEnabled && !dialOutEnabled);
|
186
|
187
|
|
187
|
188
|
return {
|
188
|
189
|
_conferenceName: getRoomName(state),
|
189
|
190
|
_dialIn: state['features/invite'],
|
190
|
|
- _hideInviteContacts:
|
191
|
|
- iAmRecorder || (!addPeopleEnabled && !dialOutEnabled),
|
|
191
|
+ _inviteContactsVisible: interfaceConfig.ENABLE_DIAL_OUT && !hideInviteContacts,
|
192
|
192
|
_inviteUrl: getInviteURL(state),
|
193
|
193
|
_liveStreamViewURL:
|
194
|
194
|
currentLiveStreamingSession
|