Clear stale in-flight status selections at launch, so statuses queued when the app was killed get sent.

This commit is contained in:
Brent Simmons committed 2026-08-03 11:07:55 -07:00
1 parent 145af40159
commit 13aedbad29
4 files changed
+20

No files matched your search

@@ -449,6 +449,11 @@ public enum FeedbinAccountDelegateError: String, Error, Sendable {
func accountDidInitialize() {
credentials = try? account?.retrieveCredentials(type: .basic)
// A send in progress when the app was killed left its statuses selected. Clear them so
// they get sent, instead of waiting for the next selectForProcessing to pick them up.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4280>
syncDatabase.resetAllSelectedForProcessing()
}
func accountWillBeDeleted() {
@@ -637,6 +637,11 @@ import Secrets
}
Self.logger.debug("FeedlyAccountDelegate: accountDidInitialize")
credentials = try? account.retrieveCredentials(type: .oauthAccessToken)
// A send in progress when the app was killed left its statuses selected. Clear them so
// they get sent, instead of waiting for the next selectForProcessing to pick them up.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4280>
syncDatabase.resetAllSelectedForProcessing()
}
func accountWillBeDeleted() {
@@ -511,6 +511,11 @@ import Secrets
func accountDidInitialize() {
credentials = try? account?.retrieveCredentials(type: .newsBlurSessionID)
// A send in progress when the app was killed left its statuses selected. Clear them so
// they get sent, instead of waiting for the next selectForProcessing to pick them up.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4280>
syncDatabase.resetAllSelectedForProcessing()
}
func accountWillBeDeleted() {
@@ -677,6 +677,11 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
return
}
retrieveCredentialsIfNeeded(account)
// A send in progress when the app was killed left its statuses selected. Clear them so
// they get sent, instead of waiting for the next selectForProcessing to pick them up.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4280>
syncDatabase.resetAllSelectedForProcessing()
}
func accountWillBeDeleted() {