chore: remove likely redundant acks

This commit is contained in:
Adhiraj Singh
2022-05-28 18:21:46 +05:30
parent bf5d86366e
commit 5eca282d05

View File

@@ -488,7 +488,6 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
}
)
} else {
await sendMessageAck(stanza, { class: 'receipt' })
// no type in the receipt => message delivered
let type: MessageReceiptType = undefined
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) => {
const { attrs } = node
const [infoChild] = getAllBinaryNodeChildren(node)