remove unncessary code from actorFeedModel

zio/stable
Ansh Nanda 2023-05-12 17:22:53 -07:00
parent 06ce42158e
commit fa4af20764
1 changed files with 1 additions and 17 deletions

View File

@ -11,7 +11,7 @@ import {cleanError} from 'lib/strings/errors'
const PAGE_SIZE = 30 const PAGE_SIZE = 30
export class BookmarkedFeedsModel { export class ActorFeedsModel {
// state // state
isLoading = false isLoading = false
isRefreshing = false isRefreshing = false
@ -84,22 +84,6 @@ export class BookmarkedFeedsModel {
} }
}) })
async bookmark(feed: FeedDefs.GeneratorView) {
try {
await this.rootStore.agent.app.bsky.feed.bookmarkFeed({feed: feed.uri})
} catch (e: any) {
this.rootStore.log.error('Failed to bookmark feed', e)
}
}
async unbookmark(feed: FeedDefs.GeneratorView) {
try {
await this.rootStore.agent.app.bsky.feed.unbookmarkFeed({feed: feed.uri})
} catch (e: any) {
this.rootStore.log.error('Failed to unbookmark feed', e)
}
}
// state transitions // state transitions
// = // =