mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: do not fire chat update for reactions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user