about summary refs log tree commit diff
path: root/src/state/models/me.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-12 18:26:02 -0600
committerGitHub <noreply@github.com>2023-11-12 16:26:02 -0800
commitc584a3378d66459c04eee7d98560920e09c5f09f (patch)
treeeafe583f664254ab8af530ec3c67859851e6dc46 /src/state/models/me.ts
parentd9e0a927c1c98ebd6aa3885ab517af27e7de2522 (diff)
downloadvoidsky-c584a3378d66459c04eee7d98560920e09c5f09f.tar.zst
Refactor My Feeds (#1877)
* Refactor My Feeds screen

* Remove unused feed UI models

* Add back PTR
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r--src/state/models/me.ts6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index 4bbb5a04b..c17fcf183 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -5,7 +5,6 @@ import {
 } from '@atproto/api'
 import {RootStoreModel} from './root-store'
 import {NotificationsFeedModel} from './feeds/notifications'
-import {MyFeedsUIModel} from './ui/my-feeds'
 import {MyFollowsCache} from './cache/my-follows'
 import {isObj, hasProp} from 'lib/type-guards'
 import {logger} from '#/logger'
@@ -22,7 +21,6 @@ export class MeModel {
   followsCount: number | undefined
   followersCount: number | undefined
   notifications: NotificationsFeedModel
-  myFeeds: MyFeedsUIModel
   follows: MyFollowsCache
   invites: ComAtprotoServerDefs.InviteCode[] = []
   appPasswords: ComAtprotoServerListAppPasswords.AppPassword[] = []
@@ -40,13 +38,11 @@ export class MeModel {
       {autoBind: true},
     )
     this.notifications = new NotificationsFeedModel(this.rootStore)
-    this.myFeeds = new MyFeedsUIModel(this.rootStore)
     this.follows = new MyFollowsCache(this.rootStore)
   }
 
   clear() {
     this.notifications.clear()
-    this.myFeeds.clear()
     this.follows.clear()
     this.rootStore.profiles.cache.clear()
     this.rootStore.posts.cache.clear()
@@ -113,8 +109,6 @@ export class MeModel {
           error: e,
         })
       })
-      this.myFeeds.clear()
-      /* dont await */ this.myFeeds.saved.refresh()
       this.rootStore.emitSessionLoaded()
       await this.fetchInviteCodes()
       await this.fetchAppPasswords()