presence update bug fix

This commit is contained in:
Adhiraj Singh
2020-11-17 17:27:09 +05:30
parent f29c5cf206
commit be92f5d33c

View File

@@ -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)