MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / markInboxThreadRead

Function markInboxThreadRead

desktop/thread-state-db/inbox-writes.ts:58–67  ·  view source on GitHub ↗
(sessionPath: string)

Source from the content-addressed store, hash-verified

56}
57
58export 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
69export function dismissInboxThread(sessionPath: string) {
70 const db = getThreadStateDatabase()

Callers 1

thread-actions.tsFile · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
runMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected