From d8ed4055d349de364c286a009104ee2c9a958a97 Mon Sep 17 00:00:00 2001 From: canove Date: Thu, 20 Aug 2020 18:45:48 -0300 Subject: [PATCH] fix: missed whatsapp calls showing as empty msgs --- backend/src/services/wbotMessageListener.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/backend/src/services/wbotMessageListener.js b/backend/src/services/wbotMessageListener.js index 5038fd4..9d32969 100644 --- a/backend/src/services/wbotMessageListener.js +++ b/backend/src/services/wbotMessageListener.js @@ -137,8 +137,12 @@ const wbotMessageListener = () => { const io = getIO(); wbot.on("message", async msg => { - // console.log(msg); - if (msg.from === "status@broadcast" || msg.type === "location") { + console.log(msg); + if ( + msg.from === "status@broadcast" || + msg.type === "location" || + msg.type === "call_log" + ) { return; }