Update unread counts when returning to home

This commit is contained in:
Shadowfacts 2022-01-11 14:23:19 -05:00
parent 12e0e3cdfd
commit c9b12a6b70
1 changed files with 5 additions and 0 deletions

View File

@ -79,6 +79,11 @@ class HomeViewController: UIViewController {
collectionView.deselectItem(at: indexPath, animated: true)
}
}
var snapshot = dataSource.snapshot()
// reconfigure so that unread counts update
snapshot.reconfigureItems(snapshot.itemIdentifiers)
dataSource.apply(snapshot)
}
private func createDataSource() -> UICollectionViewDiffableDataSource<Section, Item> {