Added setting for default messages sort mode

This commit is contained in:
the-djmaze 2024-10-11 00:28:05 +02:00
parent 16106a28d5
commit 055c0d3bf4
7 changed files with 61 additions and 5 deletions

View file

@ -7,6 +7,7 @@ import { forEachObjectEntry } from 'Common/Utils';
import { getFolderInboxName, getFolderFromCacheList } from 'Common/Cache';
import { Settings, SettingsCapa } from 'Common/Globals';
//import Remote from 'Remote/User/Fetch'; // Circular dependency
import { SettingsUserStore } from 'Stores/User/Settings';
export const
@ -59,7 +60,7 @@ FolderUserStore = new class {
*/
displaySpecSetting: false,
sortMode: '',
sortMode: SettingsUserStore.defaultSort(),
quotaLimit: 0,
quotaUsage: 0,

View file

@ -29,6 +29,7 @@ export const SettingsUserStore = new class {
showNextMessage: 0,
allowDraftAutosave: 1,
useThreads: 0,
defaultSort: '',
threadAlgorithm: '',
replySameFolder: 0,
hideUnsubscribed: 0,
@ -103,6 +104,7 @@ export const SettingsUserStore = new class {
'showNextMessage',
'AllowDraftAutosave',
'useThreads',
'defaultSort',
'threadAlgorithm',
'ReplySameFolder',
'HideUnsubscribed',