Bugfix: some folders were invisible while they should be visible

It all came down to a very complex subscribe system.
I changed that in a "is visible for whatever reason" system.
This commit is contained in:
djmaze 2021-11-03 19:25:52 +01:00
parent 5264cd8225
commit 2cf2b1ee75
3 changed files with 38 additions and 35 deletions

View file

@ -2,7 +2,7 @@ import ko from 'ko';
import { Layout, EditorDefaultType } from 'Common/EnumsUser';
import { pInt, addObservablesTo } from 'Common/Utils';
import { $htmlCL, SettingsGet } from 'Common/Globals';
import { $htmlCL, Settings, SettingsGet } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
export const SettingsUserStore = new class {
@ -31,7 +31,7 @@ export const SettingsUserStore = new class {
allowDraftAutosave: !!SettingsGet('AllowDraftAutosave'),
useThreads: !!SettingsGet('UseThreads'),
replySameFolder: !!SettingsGet('ReplySameFolder'),
hideUnsubscribed: !!SettingsGet('HideUnsubscribed'),
hideUnsubscribed: Settings.app('useImapSubscribe') && SettingsGet('HideUnsubscribed'),
autoLogout: pInt(SettingsGet('AutoLogout'))
});