diff options
author | Joas Schilling <coding@schilljs.com> | 2022-11-16 12:54:40 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-11-16 13:03:01 +0100 |
commit | 97b3216a7c3ca016f0c3ef5d0e47d35d8b2d9b35 (patch) | |
tree | d5a4ce4a202ac9ca445a1a20a66c65bff49c7610 | |
parent | bf2aeb4b858ca386bbd2bac7c0e4ffcb114ccb5d (diff) |
Remove duplicated initial state
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/TInitialState.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/TInitialState.php b/lib/TInitialState.php index c5e6ecd9a..bd86b0311 100644 --- a/lib/TInitialState.php +++ b/lib/TInitialState.php @@ -108,7 +108,7 @@ trait TInitialState { $this->initialState->provideInitialState( 'public_rooms_allowed', - $this->serverConfig->getAppValue('spreed', 'public_rooms_allowed', 'yes') === 'yes' + $this->talkConfig->isAllowedToCreatePublicConversations() ); $this->initialState->provideInitialState( @@ -164,11 +164,6 @@ trait TInitialState { 'enable_matterbridge', $this->serverConfig->getAppValue('spreed', 'enable_matterbridge', '0') === '1' ); - - $this->initialState->provideInitialState( - 'public_rooms_allowed', - $this->serverConfig->getAppValue('spreed', 'public_rooms_allowed', 'yes') === 'yes' - ); } protected function publishInitialStateForGuest(): void { |