From b445a1f43ac5fb6e7a3e2cb16abc317cfffcd290 Mon Sep 17 00:00:00 2001 From: Adhiraj Date: Thu, 28 May 2020 18:46:03 +0530 Subject: [PATCH] Compatibility with older versions of Node --- WhatsAppWeb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WhatsAppWeb.js b/WhatsAppWeb.js index d24bafa..4aa3e3b 100644 --- a/WhatsAppWeb.js +++ b/WhatsAppWeb.js @@ -113,7 +113,7 @@ class WhatsAppWeb { participant: json.participant, timestamp: new Date (json.t*1000), ids: ids, - type: ackTypes[json.ack-1] ?? "unknown (" + json.ack + ")" + type: ackTypes[json.ack-1] || "unknown (" + json.ack + ")" } callback (data) }