From 6b23cadc418934947a847607dc0f5d3632ceef5d Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 29 Jan 2020 11:41:05 -0700 Subject: [PATCH] Empty the timeline when ending the search to make sure diffable datasources don't keep some search cells around. Issue #1736 --- iOS/SceneCoordinator.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/iOS/SceneCoordinator.swift b/iOS/SceneCoordinator.swift index 139466d50..14129bbdb 100644 --- a/iOS/SceneCoordinator.swift +++ b/iOS/SceneCoordinator.swift @@ -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)