diff options
author | Eric Bailey <git@esb.lol> | 2023-11-15 20:35:58 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-15 18:35:58 -0800 |
commit | 0de8d40981fecdeaec92307bafe121ccb2091b45 (patch) | |
tree | 73415ce38b154dd2ba8882b687067e6837f79bf2 /src/state/models/root-store.ts | |
parent | e749f2f3a52f5c1e137ce8262701b9c9df96324f (diff) | |
download | voidsky-0de8d40981fecdeaec92307bafe121ccb2091b45.tar.zst |
Misc cleanup (#1925)
* Remove unused prefs * Cleanup * Remove my-follows cache * Replace moderationOpts in ProfileCard comp * Replace moderationOpts in FeedSlice * Remove preferences model
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r-- | src/state/models/root-store.ts | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index 288e8b8e1..6d7c2c12e 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -15,7 +15,6 @@ import {ProfilesCache} from './cache/profiles-view' import {PostsCache} from './cache/posts' import {LinkMetasCache} from './cache/link-metas' import {MeModel} from './me' -import {PreferencesModel} from './ui/preferences' import {resetToTab} from '../../Navigation' import {ImageSizesCache} from './cache/image-sizes' import {reset as resetNavigation} from '../../Navigation' @@ -39,7 +38,6 @@ export class RootStoreModel { appInfo?: AppInfo session = new SessionModel(this) shell = new ShellUiModel(this) - preferences = new PreferencesModel(this) me = new MeModel(this) handleResolutions = new HandleResolutionsCache() profiles = new ProfilesCache(this) @@ -64,7 +62,6 @@ export class RootStoreModel { return { appInfo: this.appInfo, me: this.me.serialize(), - preferences: this.preferences.serialize(), } } @@ -79,9 +76,6 @@ export class RootStoreModel { if (hasProp(v, 'me')) { this.me.hydrate(v.me) } - if (hasProp(v, 'preferences')) { - this.preferences.hydrate(v.preferences) - } } } |