зеркало из https://github.com/nextcloud/spreed.git
Fix initial state handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Родитель
82d0d83885
Коммит
b327b965c3
|
@ -97,8 +97,8 @@ trait TInitialState {
|
|||
$this->talkConfig->getUserReadPrivacy($user->getUID())
|
||||
);
|
||||
|
||||
$this->initialStateService->provideInitialState(
|
||||
'talk', 'play_sounds',
|
||||
$this->initialState->provideInitialState(
|
||||
'play_sounds',
|
||||
$this->serverConfig->getUserValue($user->getUID(), 'spreed', 'play_sounds', 'yes') === 'yes'
|
||||
);
|
||||
|
||||
|
@ -173,8 +173,8 @@ trait TInitialState {
|
|||
false
|
||||
);
|
||||
|
||||
$this->initialStateService->provideInitialState(
|
||||
'talk', 'play_sounds',
|
||||
$this->initialState->provideInitialState(
|
||||
'play_sounds',
|
||||
false
|
||||
);
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@ import { loadState } from '@nextcloud/initial-state'
|
|||
import BrowserStorage from '../services/BrowserStorage'
|
||||
|
||||
const state = {
|
||||
playSoundsUser: loadState('talk', 'play_sounds'),
|
||||
playSoundsUser: loadState('spreed', 'play_sounds'),
|
||||
playSoundsGuest: BrowserStorage.getItem('play_sounds') !== 'no',
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче