Auties00 / Cobalt

Standalone unofficial fully-featured Whatsapp Web and Mobile API for Java and Kotlin
MIT License
616 stars 180 forks source link

onContactPresence doesnt get invoked #414

Closed BasselAshi closed 6 months ago

BasselAshi commented 8 months ago

Been debugging it.auties.whatsapp.socket.SocketHandler.onUpdateChatPresence and I can see that you set the store contact's last known presence to status then compare status to the contact, if equal, then you return before invoking the listeners.

What's the reasoning behind this? And when will this ever be false so that we can hit the listeners?

For reference, I'm referring to this line