Comments (6)
My bad for affirming it @deepesh-agarwal 😢
No issues, I guess the empty message fix should be fixing it.
@deepesh-agarwal Do you have discord?
Sorry :(
from whaticket-community.
@canove I think i identified the issue in @deepesh-agarwal case.
I have a number in my phone contact list, but i don't have that number in my whaticket contact list tab, because i didn't synced my contact list, so that number appears like 551999509xxxx, and it doesn't appear the name of the contact, because i haven't synced this contact in my whaticket contact list tab.
So today that number turned into a business account, and it popped up two empty messages like @deepesh-agarwal issue.
How i know it turned into a business account? I opened a chat in my phone with this person and saw a balloon saying that today that person turned his account into a business account.
These two empty messages are not on my phone and also not on wpp.web.
These two empty messages types are e2e_notification
and notification_template
.
The solution is to ignore message type equals e2e_notification
and notification_template
.
Backend Log:
2020.09.14, 22:03:07.0407 UTC -> (22:03 UTC equals 19:03 GMT-3 Brazil)
From: [email protected]
Type: e2e_notification
Message:
2020.09.14, 22:03:07.0426 UTC -> (22:03 UTC equals 19:03 GMT-3 Brazil)
From: [email protected]
Type: notification_template
Message:
Whaticket Frontend Screenshot:
from whaticket-community.
@deepesh-agarwal I realized that this happens when the person (in this case 6147905xxxx) turns his account from a personal account to a business account or vice versa. It generates an event like status@broadcast
does.
Please enter the chat of the 6147905xxxx number and check if that number has just turned today his whatsapp account into a business account, and tell us. Or turn your account into business and you will get the event in the backend console.
I dont have a spare whatsapp number here so i can't test turning the number into business account and get the backend console event to post here. =(
And so to fix this mysterious chat i think we need to get that type of event generated when someone turn his account into a business account and ignore it in the wbotMessageListener.js
file, in the section bellow:
if (
msg.from === "status@broadcast" ||
msg.type === "location" ||
msg.type === "call_log" ||
msg.author != null // Ignore Group Messages
) {
return;
from whaticket-community.
That number is not in my chats or contacts? How a random number will trigger this on my whatsapp setup!!
from whaticket-community.
Type: notification_template
Message:
I did a search for the name on the phone.
from whaticket-community.
Hello 😄
I just tested on my phone and saw that there is a type of notification like status@broadcast
, call_log
, and etc,
where it comes with message empty.
That empty balloon is some notification, i can't tell which notification it is, cuz there is plenty of notification types,
like the one where it says in a Green Balloon "You are talking to a business account [...]", there is the one in a Yellow Balloon where it says "Messages and calls are end-to-end encrypted [...]".
The types of chat messages are: (https://console.wassenger.com/docs/#operation/getDeviceMessages)
Array Filter messages by chat type
"text" "chat" "notification" "notification_template" "group_notification" "gp2" "broadcast_notification" "e2e_notification" "call_log" "protocol" "location" "payment" "vcard" "ciphertext" "multi_vcard" "revoked" "image" "video" "audio" "ptt" "sticker" "document" "unknown"
Yellow Balloons where it says Messages and calls are end-to-end encrypted. No one outside of this chat [...]
,
the type of it is e2e_notification
.
Backend:
2020.09.12, 22:03:24.0641 UTC ->
From: [email protected]
Type: e2e_notification
Message:
Phone:
Frontend:
from whaticket-community.
Related Issues (20)
- Criar fluxo antes de gerar a fila HOT 1
- Ticket retido na fila AGUARDANDO HOT 3
- Opção de chatbot HOT 1
- stopped displaying chat HOT 4
- Não consigo ver quais agentes (usuários) estão conectados
- Alterar os estilos, o titulom as cores, etc. HOT 2
- open graph no wbotlist...js HOT 1
- Como resgatar o token da api, para uso externo HOT 1
- Compiled with warnings.
- Erro no build do frontend HOT 3
- qr does not connect, it could be that whatsapp blocked the qr HOT 23
- Error Build Frontend HOT 2
- updated whatsapp-web.js - 1.23.0 after not working HOT 8
- Stickers não aparecem embaixo da mensagem - Reação por Emoji HOT 1
- send broadcast message HOT 1
- pending kernel upgrade HOT 2
- Installation error HOT 2
- Erro na leitura do QRCode HOT 2
- The connection menu appears an exclamation mark
- Error appears after running npm run build HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whaticket-community.