From 53077baa46ff0cc5353589f69a60596c5029340a Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Thu, 18 Apr 2019 10:49:31 -0500 Subject: [PATCH] Made sure the section unread count gets cleared if this isn't an Account. --- iOS/Master/MasterViewController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iOS/Master/MasterViewController.swift b/iOS/Master/MasterViewController.swift index 57239a045..52d2a0333 100644 --- a/iOS/Master/MasterViewController.swift +++ b/iOS/Master/MasterViewController.swift @@ -187,6 +187,8 @@ class MasterViewController: UITableViewController, UndoableCommandRunner { if let account = treeController.rootNode.childAtIndex(section)?.representedObject as? Account { headerView.unreadCount = account.unreadCount + } else { + headerView.unreadCount = 0 } return headerView