( opts: SessionChatStoreOptions, designId: string, id: string, patch: CommentUpdateInput, )
| 418 | } |
| 419 | |
| 420 | export function updateSessionComment( |
| 421 | opts: SessionChatStoreOptions, |
| 422 | designId: string, |
| 423 | id: string, |
| 424 | patch: CommentUpdateInput, |
| 425 | ): CommentRow | null { |
| 426 | const existing = listSessionComments(opts, designId).find((row) => row.id === id); |
| 427 | if (existing === undefined) return null; |
| 428 | appendCommentEvent(opts, designId, { schemaVersion: 1, action: 'update', id, patch }); |
| 429 | return { ...existing, ...patch }; |
| 430 | } |
| 431 | |
| 432 | export function removeSessionComment( |
| 433 | opts: SessionChatStoreOptions, |
no test coverage detected