diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-06-02 09:48:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-02 09:48:53 -0500 |
commit | 3217c7ff32b778d8a2a141fabdc6eabdf5ba018d (patch) | |
tree | 4a5f9427ab1a425d965521ca482d575cd31f4f6e /src/state/models/feeds/multi-feed.ts | |
parent | e9c84a192b3a64c49a227617e8b58c25d3e5d0f3 (diff) | |
download | voidsky-3217c7ff32b778d8a2a141fabdc6eabdf5ba018d.tar.zst |
More custom-feed behavior fixes [APP-678] (#831)
* Remove extraneous custom-feed health check * Fixes to custom feed preference sync * Fix lint * Remove dead code (client-side suggested posts constructor) * Enforce the feed-fetch limit in the client if the generator fails to observe the parameter * Bump the number of items fetched in the multifeed per feed from 5 to 10 * Reset the currently active feed when the pinned feeds change * Some fixes to icons * Add a prompt to load latest to the multifeed * Remove debug
Diffstat (limited to 'src/state/models/feeds/multi-feed.ts')
-rw-r--r-- | src/state/models/feeds/multi-feed.ts | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/state/models/feeds/multi-feed.ts b/src/state/models/feeds/multi-feed.ts index 3c13041c6..c2ca8d72f 100644 --- a/src/state/models/feeds/multi-feed.ts +++ b/src/state/models/feeds/multi-feed.ts @@ -6,7 +6,7 @@ import {CustomFeedModel} from './custom-feed' import {PostsFeedModel} from './posts' import {PostsFeedSliceModel} from './post' -const FEED_PAGE_SIZE = 5 +const FEED_PAGE_SIZE = 10 const FEEDS_PAGE_SIZE = 3 export type MultiFeedItem = @@ -148,6 +148,15 @@ export class PostsMultiFeedModel { } /** + * Load latest in the active feeds + */ + loadLatest() { + for (const feed of this.feeds) { + /* dont await */ feed.refresh() + } + } + + /** * Load more posts to the end of the feed */ loadMore = bundleAsync(async (isRefreshing: boolean = false) => { |