open-wa / wa-automate-python

💬 🤖 The most advanced Python whatsapp library for chatbots with advanced features. Be sure to ⭐ this repository for updates!
Other
330 stars 71 forks source link

get new message / get unread not working #25

Closed irvanrahadhian closed 4 years ago

irvanrahadhian commented 4 years ago

Hello, it seems get_unread() not working if there is new user chat the number first / doesnt have a chatroom before, but for existing user that already have a chatroom it working fine.

jiovanmichel commented 4 years ago

Hello, i am with same problem. If exists chat with user, not problems, but if not exist, not is rendered new chat with new message.

jiovanmichel commented 4 years ago

Hello, it seems get_unread() not working if there is new user chat the number first / doesnt have a chatroom before, but for existing user that already have a chatroom it working fine.

Alter in getStore function:

{ id: "Presence", conditions: (module) => (module.setPresenceAvailable && module.setPresenceUnavailable) ? module : null }

for

{ id: "_Presence", conditions: (module) => (module.setPresenceAvailable && module.setPresenceUnavailable) ? module : null }

irvanrahadhian commented 4 years ago

Hello, it seems get_unread() not working if there is new user chat the number first / doesnt have a chatroom before, but for existing user that already have a chatroom it working fine.

Alter in getStore function:

{ id: "Presence", conditions: (module) => (module.setPresenceAvailable && module.setPresenceUnavailable) ? module : null }

for

{ id: "_Presence", conditions: (module) => (module.setPresenceAvailable && module.setPresenceUnavailable) ? module : null }

Cool, it works again now, thank you

mrodal commented 4 years ago

please try version 1.3.0 without any changes

3cubos commented 4 years ago

please try version 1.3.0 without any changes

I'm using version 1.2.1, I haven't been able to download 1.3 yet. Where do I find?

mrodal commented 4 years ago

update with pip install --upgrade openwa