Don't reload feeds or articles if they are reselected. Issue #1017

This commit is contained in:
Maurice Parker
2019-09-13 11:19:19 -05:00
parent 1bcd265c80
commit 7a9ad97b32

View File

@@ -495,6 +495,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func selectFeed(_ indexPath: IndexPath?, automated: Bool = true) {
guard indexPath != currentFeedIndexPath else { return }
selectArticle(nil)
currentFeedIndexPath = indexPath
@@ -545,6 +547,8 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
}
func selectArticle(_ article: Article?, automated: Bool = true) {
guard article != currentArticle else { return }
currentArticle = article
activityManager.reading(currentArticle)