Refreshes Feeds screen

This commit is contained in:
Stuart Breckenridge
2022-01-23 21:01:55 +08:00
parent 98cdb86e66
commit f66146e9bc
3 changed files with 40 additions and 11 deletions

View File

@@ -739,7 +739,7 @@ private extension MasterFeedViewController {
let unreadCountView = MasterFeedUnreadCountView()
unreadCountView.unreadCount = 10
let layout = MasterFeedTableViewCellLayout(cellWidth: tableView.bounds.size.width, insets: tableView.safeAreaInsets, label: titleLabel, unreadCountView: unreadCountView, showingEditingControl: false, indent: false, shouldShowDisclosure: false)
let layout = MasterFeedTableViewCellLayout(cellWidth: tableView.bounds.size.width, insets: tableView.safeAreaInsets, label: titleLabel, unreadCountView: unreadCountView, showingEditingControl: false, indent: false, shouldShowDisclosure: false, itemIsInFolder: false)
tableView.estimatedRowHeight = layout.height
}
@@ -763,6 +763,16 @@ private extension MasterFeedViewController {
if let feed = node.representedObject as? Feed {
cell.name = feed.nameForDisplay
cell.unreadCount = feed.unreadCount
cell.itemIsInFolder = false
if let account = feed.account, let folders = account.folders {
for folder in folders {
if folder.objectIsChild(node.representedObject) {
cell.itemIsInFolder = true
break
}
}
}
}
configureIcon(cell, indexPath)