From e9c84a192b3a64c49a227617e8b58c25d3e5d0f3 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 1 Jun 2023 14:46:13 -0500 Subject: Fixes to feed preference and state sync [APP-678] (#829) * Remove extraneous custom-feed health check * Fixes to custom feed preference sync * Fix lint * Fix to how preferences are synced to enable membership modifications --- src/state/models/feeds/posts.ts | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/state/models/feeds') diff --git a/src/state/models/feeds/posts.ts b/src/state/models/feeds/posts.ts index 911cc6309..02ef5f38b 100644 --- a/src/state/models/feeds/posts.ts +++ b/src/state/models/feeds/posts.ts @@ -436,9 +436,6 @@ export class PostsFeedModel { } else if (this.feedType === 'home') { return this.rootStore.agent.getTimeline(params as GetTimeline.QueryParams) } else if (this.feedType === 'custom') { - this.checkIfCustomFeedIsOnlineAndValid( - params as GetCustomFeed.QueryParams, - ) return this.rootStore.agent.app.bsky.feed.getFeed( params as GetCustomFeed.QueryParams, ) @@ -448,18 +445,4 @@ export class PostsFeedModel { ) } } - - private async checkIfCustomFeedIsOnlineAndValid( - params: GetCustomFeed.QueryParams, - ) { - const res = await this.rootStore.agent.app.bsky.feed.getFeedGenerator({ - feed: params.feed, - }) - if (!res.data.isOnline || !res.data.isValid) { - runInAction(() => { - this.error = - 'This custom feed is not online or may be experiencing issues.' - }) - } - } } -- cgit 1.4.1