diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index 0a7d329c..fd84e764 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -115,6 +115,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { content: [{ tag: 'media_conn', attrs: {} }] }) const mediaConnNode = getBinaryNodeChild(result, 'media_conn')! + // TODO: explore full length of data that whatsapp provides const node: MediaConnInfo = { hosts: getBinaryNodeChildren(mediaConnNode, 'host').map(({ attrs }) => ({ hostname: attrs.hostname!, @@ -465,7 +466,11 @@ export const makeMessagesSocket = (config: SocketConfig) => { category: 'peer', push_priority: 'high_force' - } + }, + additionalNodes: [{ + tag: 'meta', + attrs: {'appdata': 'default'} + }] }) return msgId