From b068bba23814b355f9728db3020291e3591a23f6 Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Tue, 28 Jul 2020 14:18:36 +0530 Subject: [PATCH] Ack fix --- src/WAClient/Base.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WAClient/Base.ts b/src/WAClient/Base.ts index 1f663d9..ce83ec9 100644 --- a/src/WAClient/Base.ts +++ b/src/WAClient/Base.ts @@ -27,7 +27,7 @@ export default class WhatsAppWebBase extends WAConnection { participant: json.participant, timestamp: new Date(json.t * 1000), ids: ids, - type: json.ack, + type: (+json.ack)+1, } callback(data) }