From 9dc8f8d37a3acaeb5e079968309058bc6b95d9bb Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Sun, 8 Sep 2019 08:40:15 -0500 Subject: [PATCH] Clear the timeline if the deleted feed is showing in the timeline --- iOS/MasterFeed/MasterFeedViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index d2dc7354c..7d2cb54ae 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -882,6 +882,11 @@ private extension MasterFeedViewController { pushUndoableCommand(deleteCommand) deleteCommand.perform() + + if indexPath == coordinator.currentFeedIndexPath { + coordinator.selectFeed(nil) + } + } }