fix: missed whatsapp calls showing as empty msgs

This commit is contained in:
canove
2020-08-20 18:45:48 -03:00
parent 5226b94ac4
commit d8ed4055d3

View File

@@ -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;
}