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,6 +24,7 @@ const WHITELISTED_KEYS = [
24 24
     'autoRecord',
25 25
     'autoRecordToken',
26 26
     'avgRtpStatsN',
27
+    'callFlowsEnabled',
27 28
     'callStatsConfIDNamespace',
28 29
     'callStatsID',
29 30
     'callStatsSecret',

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

@@ -49,7 +49,11 @@ export function invite(invitees: Array<Object>) {
49 49
 
50 50
         const state = getState();
51 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 57
         const inviteUrl = getInviteURL(state);
54 58
         const { jwt } = state['features/base/jwt'];
55 59
 
@@ -85,7 +89,8 @@ export function invite(invitees: Array<Object>) {
85 89
             // filter all rooms and users from {@link invitesLeftToSend}.
86 90
             const peopleInvitePromise
87 91
                 = invitePeopleAndChatRooms(
88
-                    inviteServiceUrl,
92
+                    callFlowsEnabled
93
+                        ? inviteServiceCallFlowsUrl : inviteServiceUrl,
89 94
                     inviteUrl,
90 95
                     jwt,
91 96
                     usersAndRooms)

Loading…
Cancel
Save