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/me.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/me.ts')
-rw-r--r-- | src/state/models/me.ts | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 427b0e35e..586be4f42 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -4,7 +4,6 @@ import { ComAtprotoServerListAppPasswords, } from '@atproto/api' import {RootStoreModel} from './root-store' -import {MyFollowsCache} from './cache/my-follows' import {isObj, hasProp} from 'lib/type-guards' import {logger} from '#/logger' @@ -18,7 +17,6 @@ export class MeModel { avatar: string = '' followsCount: number | undefined followersCount: number | undefined - follows: MyFollowsCache invites: ComAtprotoServerDefs.InviteCode[] = [] appPasswords: ComAtprotoServerListAppPasswords.AppPassword[] = [] lastProfileStateUpdate = Date.now() @@ -33,11 +31,9 @@ export class MeModel { {rootStore: false, serialize: false, hydrate: false}, {autoBind: true}, ) - this.follows = new MyFollowsCache(this.rootStore) } clear() { - this.follows.clear() this.rootStore.profiles.cache.clear() this.rootStore.posts.cache.clear() this.did = '' |