Refresh hometimeline (IOS-157)

This commit is contained in:
Nathan Mattes 2023-05-23 13:13:34 +02:00
parent 5daf944384
commit 1a0ab4607c
3 changed files with 2 additions and 6 deletions

View File

@ -77,6 +77,7 @@ class SuggestionAccountViewController: UIViewController, NeedsDependency {
//MARK: - Actions
@objc func doneButtonDidClick(_ sender: UIButton) {
viewModel.delegate?.homeTimelineNeedRefresh.send()
dismiss(animated: true, completion: nil)
}
}

View File

@ -133,6 +133,7 @@ final class SuggestionAccountViewModel: NSObject {
}
})
delegate?.homeTimelineNeedRefresh.send()
completion?()
}
}

View File

@ -83,11 +83,6 @@ final public class FeedFetchedResultsController: NSObject {
}
.store(in: &disposeBag)
}
deinit {
logger.log(level: .debug, "\((#file as NSString).lastPathComponent, privacy: .public)[\(#line, privacy: .public)], \(#function, privacy: .public)")
}
}
// MARK: - NSFetchedResultsControllerDelegate
@ -96,7 +91,6 @@ extension FeedFetchedResultsController: NSFetchedResultsControllerDelegate {
_ controller: NSFetchedResultsController<NSFetchRequestResult>,
didChangeContentWith snapshot: NSDiffableDataSourceSnapshotReference
) {
os_log("%{public}s[%{public}ld], %{public}s", ((#file as NSString).lastPathComponent), #line, #function)
let snapshot = snapshot as NSDiffableDataSourceSnapshot<String, NSManagedObjectID>
self._objectIDs.send(snapshot.itemIdentifiers)
}