mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
chore: remove likely redundant acks
This commit is contained in:
@@ -488,7 +488,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
await sendMessageAck(stanza, { class: 'receipt' })
|
|
||||||
// no type in the receipt => message delivered
|
// no type in the receipt => message delivered
|
||||||
let type: MessageReceiptType = undefined
|
let type: MessageReceiptType = undefined
|
||||||
let participant = msg.key.participant
|
let participant = msg.key.participant
|
||||||
@@ -514,19 +513,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
ws.on('CB:ack,class:message', async(node: BinaryNode) => {
|
|
||||||
sendNode({
|
|
||||||
tag: 'ack',
|
|
||||||
attrs: {
|
|
||||||
class: 'receipt',
|
|
||||||
id: node.attrs.id,
|
|
||||||
from: node.attrs.from
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch(err => onUnexpectedError(err, 'ack message receipt'))
|
|
||||||
logger.debug({ attrs: node.attrs }, 'sending receipt for ack')
|
|
||||||
})
|
|
||||||
|
|
||||||
ws.on('CB:call', async(node: BinaryNode) => {
|
ws.on('CB:call', async(node: BinaryNode) => {
|
||||||
const { attrs } = node
|
const { attrs } = node
|
||||||
const [infoChild] = getAllBinaryNodeChildren(node)
|
const [infoChild] = getAllBinaryNodeChildren(node)
|
||||||
|
|||||||
Reference in New Issue
Block a user