diff --git a/react/features/local-recording/components/LocalRecordingLabel.native.js b/react/features/local-recording/components/LocalRecordingLabel.native.js new file mode 100644 index 000000000..e69de29bb diff --git a/react/features/local-recording/components/LocalRecordingLabel.js b/react/features/local-recording/components/LocalRecordingLabel.web.js similarity index 100% rename from react/features/local-recording/components/LocalRecordingLabel.js rename to react/features/local-recording/components/LocalRecordingLabel.web.js diff --git a/react/features/local-recording/middleware.js b/react/features/local-recording/middleware.js index 0465459ad..3f834c26a 100644 --- a/react/features/local-recording/middleware.js +++ b/react/features/local-recording/middleware.js @@ -17,7 +17,7 @@ import { recordingController } from './controller'; declare var APP: Object; declare var config: Object; -const isFeatureEnabled = config.localRecording +const isFeatureEnabled = typeof config === 'object' && config.localRecording && config.localRecording.enabled === true; isFeatureEnabled