diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index 0c93de8..aa0a38f 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -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)