Fix marking read a single call history

This commit is contained in:
ayumi-signal 2024-03-21 14:30:41 -07:00 committed by GitHub
parent ff5ecd8bf3
commit a815d81c6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3525,7 +3525,7 @@ async function markCallHistoryRead(callId: string): Promise<void> {
const [query, params] = sql`
UPDATE messages
SET
seenStatus = ${SEEN_STATUS_UNSEEN}
seenStatus = ${SEEN_STATUS_SEEN},
json = json_patch(json, ${jsonPatch})
WHERE type IS 'call-history'
AND callId IS ${callId}