Empty the timeline when ending the search to make sure diffable datasources don't keep some search cells around. Issue #1736

This commit is contained in:
Maurice Parker 2020-01-29 11:41:05 -07:00
parent f96bb9c3e0
commit 6b23cadc41
1 changed files with 1 additions and 0 deletions

View File

@ -805,6 +805,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
func endSearching() {
if let ip = currentFeedIndexPath, let node = nodeFor(ip), let feed = node.representedObject as? Feed {
emptyTheTimeline()
timelineFeed = feed
masterTimelineViewController?.reinitializeArticles(resetScroll: true)
replaceArticles(with: savedSearchArticles!, animated: true)