Fix bug where sending an article's read status could delete its queued starred status.

This commit is contained in:
Brent Simmons committed 2026-08-02 12:48:25 -07:00
1 parent 41395fb9b7
commit e5171cbb0b
6 files changed
+35 -22

No files matched your search

@@ -55,12 +55,14 @@ public actor SyncDatabase {
}
}
public func resetSelectedForProcessing(_ articleIDs: Set<String>) {
SyncStatusTable.resetSelectedForProcessing(articleIDs, database: database)
/// Pass `key` when sending one status kind at a time. A nil key matches all kinds —
/// correct only when every queued kind for these articleIDs was sent together.
public func resetSelectedForProcessing(_ articleIDs: Set<String>, key: SyncStatus.Key? = nil) {
SyncStatusTable.resetSelectedForProcessing(articleIDs, key: key, database: database)
}
public func deleteSelectedForProcessing(_ articleIDs: Set<String>) {
SyncStatusTable.deleteSelectedForProcessing(articleIDs, database: database)
public func deleteSelectedForProcessing(_ articleIDs: Set<String>, key: SyncStatus.Key? = nil) {
SyncStatusTable.deleteSelectedForProcessing(articleIDs, key: key, database: database)
}
}