Browse Source

feat(call-flows): Add config property for enabling call flows. (#3031)

j8
hristoterezov 7 years ago
parent
commit
3dbb663922
2 changed files with 8 additions and 2 deletions
  1. 1
    0
      react/features/base/config/functions.js
  2. 7
    2
      react/features/invite/actions.js

+ 1
- 0
react/features/base/config/functions.js View File

24
     'autoRecord',
24
     'autoRecord',
25
     'autoRecordToken',
25
     'autoRecordToken',
26
     'avgRtpStatsN',
26
     'avgRtpStatsN',
27
+    'callFlowsEnabled',
27
     'callStatsConfIDNamespace',
28
     'callStatsConfIDNamespace',
28
     'callStatsID',
29
     'callStatsID',
29
     'callStatsSecret',
30
     'callStatsSecret',

+ 7
- 2
react/features/invite/actions.js View File

49
 
49
 
50
         const state = getState();
50
         const state = getState();
51
         const { conference } = state['features/base/conference'];
51
         const { conference } = state['features/base/conference'];
52
-        const { inviteServiceUrl } = state['features/base/config'];
52
+        const {
53
+            callFlowsEnabled,
54
+            inviteServiceUrl,
55
+            inviteServiceCallFlowsUrl
56
+        } = state['features/base/config'];
53
         const inviteUrl = getInviteURL(state);
57
         const inviteUrl = getInviteURL(state);
54
         const { jwt } = state['features/base/jwt'];
58
         const { jwt } = state['features/base/jwt'];
55
 
59
 
85
             // filter all rooms and users from {@link invitesLeftToSend}.
89
             // filter all rooms and users from {@link invitesLeftToSend}.
86
             const peopleInvitePromise
90
             const peopleInvitePromise
87
                 = invitePeopleAndChatRooms(
91
                 = invitePeopleAndChatRooms(
88
-                    inviteServiceUrl,
92
+                    callFlowsEnabled
93
+                        ? inviteServiceCallFlowsUrl : inviteServiceUrl,
89
                     inviteUrl,
94
                     inviteUrl,
90
                     jwt,
95
                     jwt,
91
                     usersAndRooms)
96
                     usersAndRooms)

Loading…
Cancel
Save