From f17ea72f3c9dc3d9c4ae15280df23ab8cafe57e2 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Thu, 26 Nov 2026 10:28:30 -0800 Subject: [PATCH] =?UTF-8?q?Send=20statuses,=20after=20a=20mark-articles,?= =?UTF-8?q?=20in=20the=20background=20so=20the=20thread=20doesn=E2=80=99t?= =?UTF-8?q?=20wait=20on=20the=20sync=20call.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Account/Miniflux/MinifluxAccountDelegate.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Modules/Account/Sources/Account/Miniflux/MinifluxAccountDelegate.swift b/Modules/Account/Sources/Account/Miniflux/MinifluxAccountDelegate.swift index eac1f7570..4555ab965 100644 --- a/Modules/Account/Sources/Account/Miniflux/MinifluxAccountDelegate.swift +++ b/Modules/Account/Sources/Account/Miniflux/MinifluxAccountDelegate.swift @@ -533,7 +533,9 @@ import Secrets NotificationCenter.default.post(name: .AccountDidQueueArticleStatuses, object: account) } if let count = try? await syncDatabase.selectPendingCount(), count > Self.sendStatusBatchThreshold { - try await sendArticleStatus() + // Flush in the background so marking doesn't block the caller + // + Task { try? await sendArticleStatus() } } }