From 775ed02fa81809e9e64ce84368a7e7fda39ebc45 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 4 Dec 2024 10:15:16 +0100 Subject: [PATCH] fix(state): provide call recording config values with initial state Signed-off-by: Maksim Sukharev --- lib/Controller/RoomController.php | 2 ++ lib/Settings/Admin/AdminSettings.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/Controller/RoomController.php b/lib/Controller/RoomController.php index de4d43a8374..70b353c7b06 100644 --- a/lib/Controller/RoomController.php +++ b/lib/Controller/RoomController.php @@ -159,6 +159,8 @@ protected function getTalkHashHeader(): array { $this->config->getAppValue('spreed', 'sip_bridge_dialin_info'), $this->config->getAppValue('spreed', 'sip_bridge_shared_secret'), $this->config->getAppValue('spreed', 'recording_consent'), + $this->config->getAppValue('spreed', 'call_recording_transcription'), + $this->config->getAppValue('spreed', 'call_recording_summary'), $this->config->getAppValue('theming', 'cachebuster', '1'), $this->config->getUserValue($this->userId, 'theming', 'userCacheBuster', '0'), $this->config->getAppValue('spreed', 'federation_incoming_enabled'), diff --git a/lib/Settings/Admin/AdminSettings.php b/lib/Settings/Admin/AdminSettings.php index e03d0a9c75e..6039bfa842e 100644 --- a/lib/Settings/Admin/AdminSettings.php +++ b/lib/Settings/Admin/AdminSettings.php @@ -448,6 +448,8 @@ protected function initRecording(): void { 'uploadLimit' => is_infinite($uploadLimit) ? 0 : $uploadLimit, ]); $this->initialState->provideInitialState('recording_consent', $this->talkConfig->getRecordingConsentConfig()); + $this->initialState->provideInitialState('call_recording_transcription', $this->serverConfig->getAppValue('spreed', 'call_recording_transcription', 'no') === 'yes'); + $this->initialState->provideInitialState('call_recording_summary', $this->serverConfig->getAppValue('spreed', 'call_recording_summary', 'yes') === 'yes'); } protected function initSIPBridge(): void {