Close stale notifications once the item is dealt with
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user