Don't let an in-flight status send hide a pending change from the refresh that would revert it. Fixes #4280.

This commit is contained in:
Brent Simmons committed 2026-08-03 11:05:06 -07:00
1 parent f997c22abd
commit 145af40159
1 file changed
+4 -1
@@ -124,8 +124,11 @@ private extension SyncStatusTable {
return SyncStatus(articleID: articleID, key: key, flag: flag, selected: selected)
}
// Includes rows that are selected — a send in flight hasn’t been confirmed by the server yet,
// and skipping those let a concurrent refresh revert the change the send was carrying.
// <https://github.com/Ranchero-Software/NetNewsWire/issues/4280>
static func selectPendingArticleIDs(_ statusKey: ArticleStatus.Key, database: FMDatabase) -> Set<String>? {
let sql = "select articleID from \(name) where selected == false and key = \"\(statusKey.rawValue)\";"
let sql = "select articleID from \(name) where key = \"\(statusKey.rawValue)\";"
guard let resultSet = database.executeQuery(sql, withArgumentsIn: nil) else {
return nil
}