mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
messaging: fix the hangs caused by the 66e error
This commit is contained in:
@@ -670,6 +670,15 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
end(new Boom('Multi-device beta not joined', { statusCode: DisconnectReason.multideviceMismatch }))
|
||||
})
|
||||
|
||||
ws.on('CB:ib,,offline_preview', (node: BinaryNode) => {
|
||||
logger.info('offline preview received', node)
|
||||
sendNode({
|
||||
tag: 'ib',
|
||||
attrs: {},
|
||||
content: [{ tag: 'offline_batch', attrs: { count: '100' } }]
|
||||
})
|
||||
})
|
||||
|
||||
ws.on('CB:ib,,edge_routing', (node: BinaryNode) => {
|
||||
const edgeRoutingNode = getBinaryNodeChild(node, 'edge_routing')
|
||||
const routingInfo = getBinaryNodeChild(edgeRoutingNode, 'routing_info')
|
||||
|
||||
Reference in New Issue
Block a user