From 78e16c8b331dfdd363c8488515fc9e3fda56c1f2 Mon Sep 17 00:00:00 2001 From: Cristian Scheid Date: Thu, 16 Apr 2026 08:46:47 -0300 Subject: [PATCH] feat(files): add configurations for file grouping Signed-off-by: Cristian Scheid --- apps/files/lib/Controller/ViewController.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/files/lib/Controller/ViewController.php b/apps/files/lib/Controller/ViewController.php index 65a021e5d362c..c647d3346e720 100644 --- a/apps/files/lib/Controller/ViewController.php +++ b/apps/files/lib/Controller/ViewController.php @@ -221,6 +221,10 @@ public function index($dir = '', $view = '', $fileid = null) { $this->initialState->provideInitialState('config', $this->userConfig->getConfigs()); $this->initialState->provideInitialState('viewConfigs', $this->viewConfig->getConfigs()); $this->initialState->provideInitialState('recent_limit', $this->appConfig->getAppValueInt('recent_limit', 100)); + // Not yet consumed by the frontend, provided for future implementation + $this->initialState->provideInitialState('group_recent_files', $this->appConfig->getAppValueBool('group_recent_files', false)); + $this->initialState->provideInitialState('recent_files_group_mime_types', $this->appConfig->getAppValueArray('recent_files_group_mime_types', [])); + $this->initialState->provideInitialState('recent_files_group_timespan_minutes', $this->appConfig->getAppValueInt('recent_files_group_timespan_minutes', 2)); // File sorting user config $filesSortingConfig = json_decode($this->config->getUserValue($userId, 'files', 'files_sorting_configs', '{}'), true);