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:
Joas Schilling 2025-11-20 17:55:22 +01:00
parent 70634f8e40
commit 3da7292481
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0
3 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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);
}
}

View file

@ -213,7 +213,7 @@ trait TInitialState {
$this->initialState->provideInitialState(
'play_sounds',
true
$this->talkConfig->getPlaySoundsDefaultForGuests()
);
}
}