remove unncessary code from actorFeedModel
This commit is contained in:
@@ -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
|
||||||
// =
|
// =
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user