Convert to async/await

This commit is contained in:
Brent Simmons committed 2025-11-16 19:59:48 -08:00
1 parent b681dea6fa
commit 24a2e68fb5
32 files changed
+945 -961

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.fetchArticles(.unread()) {
if let articles = try? account.fetchArticlesSync(.unread()) {
self?.coordinator.markAllAsRead(Array(articles))
}
}