diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-09-17 14:07:36 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-09-17 14:16:23 +0300 |
commit | 1fbbc7b56fb9a5801c80a5f76b341d02c84df179 (patch) | |
tree | bb99e8dbfe076665e9607067334486dc7b3d22f3 /lib/TInitialState.php | |
parent | a4dd707ac4b44ff8ac20586d526da3a3ade01e91 (diff) |
Fix "enable_matterbridge" initial state not set for guests
The RightSidebar component always checks the value, so even if the
setting does not apply for guests it should be explicitly disabled in
that case.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/TInitialState.php')
-rw-r--r-- | lib/TInitialState.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/TInitialState.php b/lib/TInitialState.php index d30f89da4..c918befe3 100644 --- a/lib/TInitialState.php +++ b/lib/TInitialState.php @@ -102,6 +102,11 @@ trait TInitialState { 'talk', 'attachment_folder', $attachmentFolder ); + + $this->initialStateService->provideInitialState( + 'talk', 'enable_matterbridge', + $this->serverConfig->getAppValue('spreed', 'enable_matterbridge', '0') === '1' + ); } protected function publishInitialStateForGuest(): void { @@ -121,5 +126,10 @@ trait TInitialState { 'talk', 'attachment_folder', '' ); + + $this->initialStateService->provideInitialState( + 'talk', 'enable_matterbridge', + false + ); } } |