mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-17 21:12:20 +01:00
feat(settings): Add an app config to set the default for guests sound
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
70634f8e40
commit
3da7292481
3 changed files with 6 additions and 1 deletions
|
|
@ -134,6 +134,7 @@ Legend:
|
|||
| `backgrounds_branded_for_guests` | string<br>`1` or `0` | `0` | No | | Whether guests are allowed to use the virtual backgrounds provided via `themes/talk-backgrounds/` |
|
||||
| `backgrounds_default_for_users` | string<br>`1` or `0` | `1` | No | | Whether users are allowed to use the default virtual backgrounds provided by the releases |
|
||||
| `backgrounds_upload_users` | string<br>`1` or `0` | `1` | No | | Whether users are allowed to upload custom virtual backgrounds and choose from their Nextcloud Files |
|
||||
| `guests_play_sounds` | string<br>`1` or `0` | `1` | No | | Whether guests hear the join and leave sounds by default |
|
||||
|
||||
## Experiments
|
||||
|
||||
|
|
|
|||
|
|
@ -802,4 +802,8 @@ class Config {
|
|||
// TODO Default value will be set to true, once all mobile clients support it.
|
||||
return $this->appConfig->getAppValueBool('call_end_to_end_encryption');
|
||||
}
|
||||
|
||||
public function getPlaySoundsDefaultForGuests(): bool {
|
||||
return $this->appConfig->getAppValueBool('guests_play_sounds', true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -213,7 +213,7 @@ trait TInitialState {
|
|||
|
||||
$this->initialState->provideInitialState(
|
||||
'play_sounds',
|
||||
true
|
||||
$this->talkConfig->getPlaySoundsDefaultForGuests()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue