Clear the Timeline when selecting a different Feed in the sidebar before loading it again. Fixes #3735.

This commit is contained in:
Maurice Parker
2022-11-06 13:32:20 -06:00
parent 5bc3288d59
commit 39e7b263b6

View File

@@ -2003,8 +2003,10 @@ private extension SceneCoordinator {
// To be called when we need to do an entire fetch, but an async delay is okay.
// Example: we have the Today feed selected, and the calendar day just changed.
cancelPendingAsyncFetches()
emptyTheTimeline()
guard let timelineFeed = timelineFeed else {
emptyTheTimeline()
completion()
return
}
@@ -2020,7 +2022,6 @@ private extension SceneCoordinator {
self?.replaceArticles(with: articles, animated: animated)
completion()
}
}
func fetchUnsortedArticlesAsync(for representedObjects: [Any], completion: @escaping ArticleSetBlock) {