From 3dbb663922dd3f16a9f04c776e05fbf679ceeaae Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 23 May 2018 16:52:44 -0500 Subject: [PATCH] feat(call-flows): Add config property for enabling call flows. (#3031) --- react/features/base/config/functions.js | 1 + react/features/invite/actions.js | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/react/features/base/config/functions.js b/react/features/base/config/functions.js index 12cfbe11b..686866892 100644 --- a/react/features/base/config/functions.js +++ b/react/features/base/config/functions.js @@ -24,6 +24,7 @@ const WHITELISTED_KEYS = [ 'autoRecord', 'autoRecordToken', 'avgRtpStatsN', + 'callFlowsEnabled', 'callStatsConfIDNamespace', 'callStatsID', 'callStatsSecret', diff --git a/react/features/invite/actions.js b/react/features/invite/actions.js index e0ec964a2..8973c07ba 100644 --- a/react/features/invite/actions.js +++ b/react/features/invite/actions.js @@ -49,7 +49,11 @@ export function invite(invitees: Array) { const state = getState(); const { conference } = state['features/base/conference']; - const { inviteServiceUrl } = state['features/base/config']; + const { + callFlowsEnabled, + inviteServiceUrl, + inviteServiceCallFlowsUrl + } = state['features/base/config']; const inviteUrl = getInviteURL(state); const { jwt } = state['features/base/jwt']; @@ -85,7 +89,8 @@ export function invite(invitees: Array) { // filter all rooms and users from {@link invitesLeftToSend}. const peopleInvitePromise = invitePeopleAndChatRooms( - inviteServiceUrl, + callFlowsEnabled + ? inviteServiceCallFlowsUrl : inviteServiceUrl, inviteUrl, jwt, usersAndRooms)