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,
|
getBinaryNodeChild,
|
||||||
getBinaryNodeChildBuffer,
|
getBinaryNodeChildBuffer,
|
||||||
getBinaryNodeChildren,
|
getBinaryNodeChildren,
|
||||||
isJidGroup,
|
isJidGroup, isJidStatusBroadcast,
|
||||||
isJidUser,
|
isJidUser,
|
||||||
jidDecode,
|
jidDecode,
|
||||||
jidNormalizedUser,
|
jidNormalizedUser,
|
||||||
@@ -599,7 +599,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
!isNodeFromMe
|
!isNodeFromMe
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
if(isJidGroup(remoteJid)) {
|
if(isJidGroup(remoteJid) || isJidStatusBroadcast(remoteJid)) {
|
||||||
if(attrs.participant) {
|
if(attrs.participant) {
|
||||||
const updateKey: keyof MessageUserReceipt = status === proto.WebMessageInfo.Status.DELIVERY_ACK ? 'receiptTimestamp' : 'readTimestamp'
|
const updateKey: keyof MessageUserReceipt = status === proto.WebMessageInfo.Status.DELIVERY_ACK ? 'receiptTimestamp' : 'readTimestamp'
|
||||||
ev.emit(
|
ev.emit(
|
||||||
|
|||||||
Reference in New Issue
Block a user