Fix marking read a single call history

Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2024-03-22 13:36:29 -05:00
committed by GitHub
parent 2182748af0
commit ac792f2b0f

View File

@@ -3479,7 +3479,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}