From a881f4ba020dd7ca25ccf6c96d4855a7cb114934 Mon Sep 17 00:00:00 2001 From: Fabien Lavocat Date: Fri, 1 Sep 2023 15:51:22 -0700 Subject: [PATCH] Update meeting name for gated demos --- package.json | 2 +- src/routes/ConferenceCreate/DeviceSetup/DeviceSetup.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d977638..5c3aef2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "comms-app-react-videocall", - "version": "1.10.2", + "version": "1.10.3", "private": true, "scripts": { "dev": "yarn netlify dev --offline", diff --git a/src/routes/ConferenceCreate/DeviceSetup/DeviceSetup.tsx b/src/routes/ConferenceCreate/DeviceSetup/DeviceSetup.tsx index 89d597b..56240ca 100644 --- a/src/routes/ConferenceCreate/DeviceSetup/DeviceSetup.tsx +++ b/src/routes/ConferenceCreate/DeviceSetup/DeviceSetup.tsx @@ -25,6 +25,7 @@ import MobileContent from '@src/routes/ConferenceCreate/DeviceSetup/MobileConten import ToggleMicrophoneButton from '@src/routes/ConferenceCreate/DeviceSetup/ToggleMicrophoneButton'; import ToggleVideoButton from '@src/routes/ConferenceCreate/DeviceSetup/ToggleVideoButton'; import { CreateStep, Routes } from '@src/types/routes'; +import { ungatedFeaturesEnabled } from '@src/utils/env'; import { getMeetTimestamp, splitMeetingAlias } from '@src/utils/misc'; import React, { useEffect, useMemo, useState } from 'react'; import { useIntl } from 'react-intl'; @@ -57,7 +58,7 @@ export const DeviceSetup = () => { const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); - const uniqueMeetingName = getMeetTimestamp(meetingName) ? meetingName : `${meetingName}|${Date.now().toString()}`; + const uniqueMeetingName = !ungatedFeaturesEnabled() ? meetingName : ( getMeetTimestamp(meetingName) ? meetingName : `${meetingName}|${Date.now().toString()}`); useEffect(() => { if (sdkErrors['Incorrect participant session']) {