Kaynağa Gözat

feat(AddPeopleDialog): Enable contact invitation based on interfaceConfig flag

master
Mihai Uscat 5 yıl önce
ebeveyn
işleme
ab1c5805f4

+ 2
- 0
interface_config.js Dosyayı Görüntüle

@@ -88,6 +88,8 @@ var interfaceConfig = {
88 88
     DISPLAY_WELCOME_PAGE_CONTENT: true,
89 89
     DISPLAY_WELCOME_PAGE_TOOLBAR_ADDITIONAL_CONTENT: false,
90 90
 
91
+    ENABLE_DIAL_OUT: true,
92
+
91 93
     ENABLE_FEEDBACK_ANIMATION: false, // Enables feedback star animation.
92 94
 
93 95
     FILM_STRIP_MAX_HEIGHT: 120,

+ 6
- 6
react/features/invite/components/add-people-dialog/web/AddPeopleDialog.js Dosyayı Görüntüle

@@ -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

Loading…
İptal
Kaydet