messages-send: add meta tag on peer messages

This commit is contained in:
Rajeh Taher
2025-10-15 22:49:34 +03:00
parent d9c3b5aaf3
commit 93b87e4653
+6 -1
View File
@@ -115,6 +115,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
content: [{ tag: 'media_conn', attrs: {} }] content: [{ tag: 'media_conn', attrs: {} }]
}) })
const mediaConnNode = getBinaryNodeChild(result, 'media_conn')! const mediaConnNode = getBinaryNodeChild(result, 'media_conn')!
// TODO: explore full length of data that whatsapp provides
const node: MediaConnInfo = { const node: MediaConnInfo = {
hosts: getBinaryNodeChildren(mediaConnNode, 'host').map(({ attrs }) => ({ hosts: getBinaryNodeChildren(mediaConnNode, 'host').map(({ attrs }) => ({
hostname: attrs.hostname!, hostname: attrs.hostname!,
@@ -465,7 +466,11 @@ export const makeMessagesSocket = (config: SocketConfig) => {
category: 'peer', category: 'peer',
push_priority: 'high_force' push_priority: 'high_force'
} },
additionalNodes: [{
tag: 'meta',
attrs: {'appdata': 'default'}
}]
}) })
return msgId return msgId