cross server notifications

This commit is contained in:
Ian Gulliver
2026-10-19 09:06:08 -07:00
parent dec87b3dc3
commit eb7e0a13c4
3 changed files with 57 additions and 19 deletions
+4
View File
@@ -482,6 +482,10 @@ final class Store {
task.workflow == nil && task.summarySeq > (summaryReads[task.id] ?? 0)
}
var unreadSummaries: Int {
tasks.values.joined().filter { $0.status == .active && unreadSummary($0) }.count
}
private func noteSummaryRead(_ taskId: String, _ seq: Int64) -> Bool {
if (summaryReads[taskId] ?? 0) >= seq {
return false