Close stale notifications once the item is dealt with

This commit is contained in:
Ian Gulliver
2026-10-17 15:41:54 -07:00
parent 67578352ce
commit e67576ac53
4 changed files with 39 additions and 4 deletions
+2
View File
@@ -551,6 +551,7 @@ final class Store {
try await self.loadInbox()
}
case "inbox.updated":
clearInbox(try! decodePayload(ev.payload, as: InboxItem.self))
spawn("load inbox") {
try await self.loadInbox()
}
@@ -566,6 +567,7 @@ final class Store {
case "summary.read":
if let taskId = ev.payload.value["task_id"] as? String, let seq = ev.payload.value["seq"] as? Int {
_ = noteSummaryRead(taskId, Int64(seq))
clearTurns(taskId, through: Int64(seq))
}
case "focus.updated":
if ev.actor != me?.login {