From be92f5d33c180c40b6ff5511af2b1480aa38d6b5 Mon Sep 17 00:00:00 2001 From: Adhiraj Singh Date: Tue, 17 Nov 2020 17:27:09 +0530 Subject: [PATCH] presence update bug fix --- src/WAConnection/4.Events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)