Convert to async/await.

This commit is contained in:
Brent Simmons committed 2025-11-16 20:40:00 -08:00
1 parent d7c20f5fab
commit 0205acda9f
6 files changed
+37 -48

No files matched your search

@@ -1112,7 +1112,7 @@ extension MainFeedCollectionViewController {
MarkAsReadAlertController.confirm(self, coordinator: self?.coordinator, confirmTitle: title, sourceType: contentView) { [weak self] in
// If you don't have this delay the screen flashes when it executes this code
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
if let articles = try? account.fetchArticlesSync(.unread()) {
if let articles = try? account.fetchArticles(.unread()) {
self?.coordinator.markAllAsRead(Array(articles))
}
}