fix: do not fire chat update for reactions

This commit is contained in:
Adhiraj Singh
2022-03-23 12:39:11 +05:30
parent f773a32da8
commit b933970d51
2 changed files with 11 additions and 7 deletions

View File

@@ -562,12 +562,15 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
() => processMessage(msg, chat)
)
const normalizedContent = msg.message ? normalizeMessageContent(msg.message) : undefined
if(
(
!!msg.message ||
!!normalizedContent ||
(msg.messageStubType === WAMessageStubType.CIPHERTEXT && treatCiphertextMessagesAsReal)
)
&& !msg.message?.protocolMessage
&& !normalizedContent?.protocolMessage
&& !normalizedContent?.reactionMessage
) {
chat.conversationTimestamp = toNumber(msg.messageTimestamp)
if(!msg.key.fromMe) {