diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-11-01 21:14:47 -0700 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-11-01 21:14:47 -0700 |
commit | 29bfed78f78f284d5956d3e3b621a37c0d7d830d (patch) | |
tree | 81a8d392f0850aa69ed7af7bbb43d493adae8eee /src/state/models/me.ts | |
parent | 232e90c0a014069ef6c899dabd5bc240a9cd6e4e (diff) | |
parent | 59271663b5f0716982056eb52890c71359fb6553 (diff) | |
download | voidsky-29bfed78f78f284d5956d3e3b621a37c0d7d830d.tar.zst |
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r-- | src/state/models/me.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 75c87d765..e7baf5bf2 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -6,6 +6,7 @@ import { import {RootStoreModel} from './root-store' import {PostsFeedModel} from './feeds/posts' import {NotificationsFeedModel} from './feeds/notifications' +import {MyFeedsUIModel} from './ui/my-feeds' import {MyFollowsCache} from './cache/my-follows' import {isObj, hasProp} from 'lib/type-guards' @@ -22,6 +23,7 @@ export class MeModel { followersCount: number | undefined mainFeed: PostsFeedModel notifications: NotificationsFeedModel + myFeeds: MyFeedsUIModel follows: MyFollowsCache invites: ComAtprotoServerDefs.InviteCode[] = [] appPasswords: ComAtprotoServerListAppPasswords.AppPassword[] = [] @@ -42,12 +44,14 @@ export class MeModel { algorithm: 'reverse-chronological', }) this.notifications = new NotificationsFeedModel(this.rootStore) + this.myFeeds = new MyFeedsUIModel(this.rootStore) this.follows = new MyFollowsCache(this.rootStore) } clear() { this.mainFeed.clear() this.notifications.clear() + this.myFeeds.clear() this.follows.clear() this.rootStore.profiles.cache.clear() this.rootStore.posts.cache.clear() @@ -111,6 +115,11 @@ export class MeModel { /* dont await */ this.notifications.setup().catch(e => { this.rootStore.log.error('Failed to setup notifications model', e) }) + /* dont await */ this.notifications.setup().catch(e => { + this.rootStore.log.error('Failed to setup notifications model', e) + }) + this.myFeeds.clear() + /* dont await */ this.myFeeds.saved.refresh() this.rootStore.emitSessionLoaded() await this.fetchInviteCodes() await this.fetchAppPasswords() |