mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Use message-receipt.update for status@broadcast events (#833)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user