(sessionPath: string)
| 56 | } |
| 57 | |
| 58 | export function markInboxThreadRead(sessionPath: string) { |
| 59 | const db = getThreadStateDatabase() |
| 60 | db.prepare( |
| 61 | ` |
| 62 | UPDATE inbox_items |
| 63 | SET unread = 0, updated_at = CURRENT_TIMESTAMP |
| 64 | WHERE session_path = ? |
| 65 | `, |
| 66 | ).run(sessionPath) |
| 67 | } |
| 68 | |
| 69 | export function dismissInboxThread(sessionPath: string) { |
| 70 | const db = getThreadStateDatabase() |
no test coverage detected