diff --git a/src/LegacySocket/chats.ts b/src/LegacySocket/chats.ts index c4c497e..3500b2b 100644 --- a/src/LegacySocket/chats.ts +++ b/src/LegacySocket/chats.ts @@ -391,7 +391,7 @@ const makeChatsSocket = (config: LegacySocketConfig) => { * @param jid the ID of the person/group who you are updating * @param type your presence */ - sendPresenceUpdate: (type: WAPresence, jid: string | undefined) => ( + sendPresenceUpdate: (type: WAPresence, toJid?: string) => ( sendNode({ binaryTag: [WAMetric.presence, WAFlag[type]], // weird stuff WA does json: { @@ -400,7 +400,7 @@ const makeChatsSocket = (config: LegacySocketConfig) => { content: [ { tag: 'presence', - attrs: { type: type, to: jid } + attrs: { type: type, to: toJid } } ] }