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:
parent
f96bb9c3e0
commit
6b23cadc41
@ -805,6 +805,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
|
|||||||
|
|
||||||
func endSearching() {
|
func endSearching() {
|
||||||
if let ip = currentFeedIndexPath, let node = nodeFor(ip), let feed = node.representedObject as? Feed {
|
if let ip = currentFeedIndexPath, let node = nodeFor(ip), let feed = node.representedObject as? Feed {
|
||||||
|
emptyTheTimeline()
|
||||||
timelineFeed = feed
|
timelineFeed = feed
|
||||||
masterTimelineViewController?.reinitializeArticles(resetScroll: true)
|
masterTimelineViewController?.reinitializeArticles(resetScroll: true)
|
||||||
replaceArticles(with: savedSearchArticles!, animated: true)
|
replaceArticles(with: savedSearchArticles!, animated: true)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user