From a815d81c6c2b6b58183bab339349b1a4ba53d5b0 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:30:41 -0700 Subject: [PATCH] Fix marking read a single call history --- ts/sql/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/sql/Server.ts b/ts/sql/Server.ts index 707f801652c3..46ac73305b66 100644 --- a/ts/sql/Server.ts +++ b/ts/sql/Server.ts @@ -3525,7 +3525,7 @@ async function markCallHistoryRead(callId: string): Promise { 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}