From 2b132846afa6a20d11b2e33027eef3f1bb15e502 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Fri, 22 Mar 2024 10:43:45 -0700 Subject: [PATCH] markRead: Only update read/seen status on target message --- ts/util/markConversationRead.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/util/markConversationRead.ts b/ts/util/markConversationRead.ts index 786c5730197e..60deb343d6d6 100644 --- a/ts/util/markConversationRead.ts +++ b/ts/util/markConversationRead.ts @@ -1,7 +1,7 @@ // Copyright 2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only -import { omit, isNumber } from 'lodash'; +import { isNumber, pick } from 'lodash'; import type { ConversationAttributesType } from '../model-types.d'; import { hasErrors } from '../state/selectors/message'; @@ -105,9 +105,9 @@ export async function markConversationRead( const message = window.MessageCache.__DEPRECATED$getById( messageSyncData.id ); - // we update the in-memory MessageModel with the fresh database call data + // we update the in-memory MessageModel with fresh read/seen status if (message) { - message.set(omit(messageSyncData, 'originalReadStatus')); + message.set(pick(messageSyncData, 'readStatus', 'seenStatus')); } const {