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: {} }]
|
||||
})
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user