From bed5cfa94d52f6114ef6b917e354239077407b40 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 5 Nov 2019 19:57:15 -0600 Subject: [PATCH] Only apply cell updates to the correct feed icon notification --- iOS/MasterFeed/MasterFeedViewController.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iOS/MasterFeed/MasterFeedViewController.swift b/iOS/MasterFeed/MasterFeedViewController.swift index 1b405adb1..f97341272 100644 --- a/iOS/MasterFeed/MasterFeedViewController.swift +++ b/iOS/MasterFeed/MasterFeedViewController.swift @@ -109,7 +109,10 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner { } @objc func feedIconDidBecomeAvailable(_ note: Notification) { - applyToAvailableCells(configureIcon) + guard let feed = note.userInfo?[UserInfoKey.feed] as? Feed else { + return + } + applyToCellsForRepresentedObject(feed, configureIcon(_:_:)) } @objc func feedSettingDidChange(_ note: Notification) {