Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Brückner <johannes@dotplex.com>2020-11-02 15:15:12 +0300
committerJohannes Brückner <johannes@dotplex.com>2020-11-10 11:59:20 +0300
commitaa274e8451f3a55839f1c23799cd11f5d9491c33 (patch)
tree90ad5644e2732c932a7936e86a48cedf33c60035 /lib/Controller
parent156573989ff58c7ce3de85b3dd12ef20f5f80a2b (diff)
Store collapsed-folder settings in abstracted account settings
Signed-off-by: Johannes Brückner <johannes@dotplex.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/PageController.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php
index ce67d0300..95ff5a124 100644
--- a/lib/Controller/PageController.php
+++ b/lib/Controller/PageController.php
@@ -128,6 +128,8 @@ class PageController extends Controller {
$accountsJson[] = $json;
}
+ $accountSettings = $this->preferences->getPreference('account-settings', json_encode([]));
+
$user = $this->userSession->getUser();
$response = new TemplateResponse($this->appName, 'index',
[
@@ -136,6 +138,7 @@ class PageController extends Controller {
'accounts' => base64_encode(json_encode($accountsJson)),
'external-avatars' => $this->preferences->getPreference('external-avatars', 'true'),
'collect-data' => $this->preferences->getPreference('collect-data', 'true'),
+ 'account-settings' => base64_encode($accountSettings),
]);
$this->initialStateService->provideInitialState(
Application::APP_ID,