mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix ack
This commit is contained in:
@@ -99,10 +99,14 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
stanza.attrs.recipient = attrs.recipient
|
||||
}
|
||||
|
||||
if(tag !== 'message' && attrs.type) {
|
||||
if(!!attrs.type) {
|
||||
stanza.attrs.type = attrs.type
|
||||
}
|
||||
|
||||
if(tag === "message") {
|
||||
stanza.attrs.from = authState.creds.me!.id
|
||||
}
|
||||
|
||||
logger.debug({ recv: { tag, attrs }, sent: stanza.attrs }, 'sent ack')
|
||||
await sendNode(stanza)
|
||||
}
|
||||
@@ -111,7 +115,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
||||
const stanza: BinaryNode = ({
|
||||
tag: 'call',
|
||||
attrs: {
|
||||
from: authState.creds.me!.id,
|
||||
from: authState.creds.me!,
|
||||
to: callFrom,
|
||||
},
|
||||
content: [{
|
||||
|
||||
Reference in New Issue
Block a user