mirror of
https://github.com/cheveguerra/whaticket-community.git
synced 2026-04-20 04:39:20 +00:00
fix: missed whatsapp calls showing as empty msgs
This commit is contained in:
@@ -137,8 +137,12 @@ const wbotMessageListener = () => {
|
|||||||
const io = getIO();
|
const io = getIO();
|
||||||
|
|
||||||
wbot.on("message", async msg => {
|
wbot.on("message", async msg => {
|
||||||
// console.log(msg);
|
console.log(msg);
|
||||||
if (msg.from === "status@broadcast" || msg.type === "location") {
|
if (
|
||||||
|
msg.from === "status@broadcast" ||
|
||||||
|
msg.type === "location" ||
|
||||||
|
msg.type === "call_log"
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user