🩹 Make sure refresh feeds runs on main

Resolves assertion error in `static func url(for feed: Feed) -> URL?`
This commit is contained in:
Stuart Breckenridge committed 2025-11-09 09:50:07 +08:00
1 parent 502a36787b
commit 3d652f265a
1 file changed
+5 -2
@@ -38,8 +38,10 @@ final class LocalAccountRefresher {
public func refreshFeeds(_ feeds: Set<Feed>) async {
await withCheckedContinuation { continuation in
refreshFeeds(feeds) {
continuation.resume()
Task { @MainActor in
refreshFeeds(feeds) {
continuation.resume()
}
}
}
}
@@ -291,3 +293,4 @@ private extension Data {
return self.isImage
}
}