diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-01-21 14:02:13 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-10-27 14:33:30 +0200 |
commit | 24ccb1d052f4408c5018f66ec0c016cbeee4cdf9 (patch) | |
tree | 68ad6f504ec8a4b43d7eace5661ff323ad77a656 /lib/TInitialState.php | |
parent | 1ace0327d2171f79abbf33ba8f8d9177856a568f (diff) |
Add config setting to limit the number of videos in the grid
The limit can be set with OCC like "occ config:app:set spreed
--value=XXX grid_videos_limit". The changes will take effect once the
user reloads the page.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib/TInitialState.php')
-rw-r--r-- | lib/TInitialState.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/TInitialState.php b/lib/TInitialState.php index 4ad6750ee..0d4c9e446 100644 --- a/lib/TInitialState.php +++ b/lib/TInitialState.php @@ -72,6 +72,11 @@ trait TInitialState { 'sip_dialin_info', $this->talkConfig->getDialInInfo() ); + + $this->initialStateService->provideInitialState( + 'talk', 'grid_videos_limit', + $this->talkConfig->getGridVideosLimit() + ); } protected function publishInitialStateForUser(IUser $user, IRootFolder $rootFolder, IAppManager $appManager): void { |