(scope: "session" | "project", key: string, unseen: Notification[])
| 233 | const meta = { pruned: false, disposed: false } |
| 234 | |
| 235 | const updateUnseen = (scope: "session" | "project", key: string, unseen: Notification[]) => { |
| 236 | setIndex(scope, "unseen", key, unseen) |
| 237 | setIndex(scope, "unseenCount", key, unseen.length) |
| 238 | setIndex( |
| 239 | scope, |
| 240 | "unseenHasError", |
| 241 | key, |
| 242 | unseen.some((notification) => notification.type === "error"), |
| 243 | ) |
| 244 | } |
| 245 | |
| 246 | const appendToIndex = (notification: Notification) => { |
| 247 | if (notification.session) { |
no outgoing calls
no test coverage detected