messages-send: add meta tag on peer messages
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user