fix: send init queries in queue

This commit is contained in:
Adhiraj Singh
2022-03-19 08:25:49 +05:30
parent ce3bd2421b
commit dc5015996f
2 changed files with 9 additions and 11 deletions

View File

@@ -384,13 +384,12 @@ export const makeSocket = ({
)
/** i have no idea why this exists. pls enlighten me */
const sendPassiveIq = (tag: 'passive' | 'active') => (
sendNode({
query({
tag: 'iq',
attrs: {
to: S_WHATSAPP_NET,
xmlns: 'passive',
type: 'set',
id: generateMessageTag(),
},
content: [
{ tag, attrs: { } }