From 97b3216a7c3ca016f0c3ef5d0e47d35d8b2d9b35 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 16 Nov 2022 12:54:40 +0100 Subject: Remove duplicated initial state Signed-off-by: Joas Schilling --- lib/TInitialState.php | 7 +------ 1 file changed, 1 insertion(+), 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 { -- cgit v1.2.3