mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
Clear stale in-flight status selections at launch, so statuses queued when the app was killed get sent.
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user