diff --git a/src/WAConnection/4.Events.ts b/src/WAConnection/4.Events.ts index 00aaf46..52fc29d 100644 --- a/src/WAConnection/4.Events.ts +++ b/src/WAConnection/4.Events.ts @@ -310,7 +310,7 @@ export class WAConnection extends Base { return response.eurl as string } protected applyingPresenceUpdate(update: PresenceUpdate) { - const chatId = update.id + const chatId = whatsappID(update.id) const jid = whatsappID(update.participant || update.id) // emit deprecated this.emit('user-presence-update', update)