Giter VIP home page Giter VIP logo

Comments (6)

deepesh-agarwal avatar deepesh-agarwal commented on July 22, 2024 4

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.

esteves67 avatar esteves67 commented on July 22, 2024 2

@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:

whaticket-frontend

from whaticket-community.

esteves67 avatar esteves67 commented on July 22, 2024 1

@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.

deepesh-agarwal avatar deepesh-agarwal commented on July 22, 2024 1

That number is not in my chats or contacts? How a random number will trigger this on my whatsapp setup!!

from whaticket-community.

deepesh-agarwal avatar deepesh-agarwal commented on July 22, 2024 1

Type: notification_template
Message:

I did a search for the name on the phone.

from whaticket-community.

esteves67 avatar esteves67 commented on July 22, 2024

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:

empty-balloon-wp-2

Frontend:

empty-balloon-wp-1

from whaticket-community.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.