fix(state): provide call recording config values with initial state

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2024-12-04 10:15:16 +01:00
parent 46a9649179
commit 775ed02fa8
2 changed files with 4 additions and 0 deletions

View file

@ -159,6 +159,8 @@ class RoomController extends AEnvironmentAwareOCSController {
$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'),

View file

@ -448,6 +448,8 @@ class AdminSettings implements ISettings {
'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 {