From ac792f2b0f609b9c37f2cf1927c81e1dfbdc9e5f Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Fri, 22 Mar 2024 13:36:29 -0500 Subject: [PATCH] Fix marking read a single call history Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> --- 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 526cbf9ef3..2291d9cc57 100644 --- a/ts/sql/Server.ts +++ b/ts/sql/Server.ts @@ -3479,7 +3479,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}