Skip to content

Commit 3372cb4

Browse files
committed
fixup! feat: compact view for mail layouts
1 parent 9af2b3b commit 3372cb4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

lib/Controller/PageController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ public function index(): TemplateResponse {
224224
'start-mailbox-id' => $this->preferences->getPreference($this->currentUserId, 'start-mailbox-id'),
225225
'follow-up-reminders' => $this->preferences->getPreference($this->currentUserId, 'follow-up-reminders', 'true'),
226226
'sort-favorites' => $this->preferences->getPreference($this->currentUserId, 'sort-favorites', 'false'),
227+
'compact-mode' => $this->preferences->getPreference($this->currentUserId, 'compact-mode', 'false'),
227228
]);
228229
$this->initialStateService->provideInitialState(
229230
'prefill_displayName',

src/init.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ export default function initAfterAppCreation() {
8989
key: 'smime-sign-aliases',
9090
value: loadState('mail', 'smime-sign-aliases', []),
9191
})
92+
mainStore.savePreferenceMutation({
93+
key: 'compact-mode',
94+
value: preferences['compact-mode'],
95+
})
9296

9397
mainStore.setQuickActions(loadState('mail', 'quick-actions', []))
9498

0 commit comments

Comments
 (0)