From fda41863069b2dc99e0ab5cf1c761e60d8277ae0 Mon Sep 17 00:00:00 2001 From: allburov Date: Sat, 1 Jun 2024 14:31:04 +0700 Subject: [PATCH] Use message-receipt.update for status@broadcast events (#833) --- src/Socket/messages-recv.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index a266415..e7aad6d 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -32,7 +32,7 @@ import { getBinaryNodeChild, getBinaryNodeChildBuffer, getBinaryNodeChildren, - isJidGroup, + isJidGroup, isJidStatusBroadcast, isJidUser, jidDecode, jidNormalizedUser, @@ -599,7 +599,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { !isNodeFromMe ) ) { - if(isJidGroup(remoteJid)) { + if(isJidGroup(remoteJid) || isJidStatusBroadcast(remoteJid)) { if(attrs.participant) { const updateKey: keyof MessageUserReceipt = status === proto.WebMessageInfo.Status.DELIVERY_ACK ? 'receiptTimestamp' : 'readTimestamp' ev.emit(