You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unconsistent output from getAllChats() and getAllChatsWithMessages()
Environment
WPPConnect version(s): 1.20.0
WA-JS version(s): 2.18.1
Browser: Chromium latest from Homebrew
OS: MacOS Monterey 12.6
Node version: Node 18.13.0
WhatsApp version: 2.22.24.78
MultiDevice (BETA): yes
Output
getAllChats()
getAllChatsWithMessages()
With getAllChats() I can see there is contact data but no message, but with getAllChatsWithMessages() the messages is there but not the contact data. I want to use the contact data to display the contact and the message data to display the latest message
The text was updated successfully, but these errors were encountered:
With this code you will return the chat already formatted as you need. We avoid messing too much with the return of what WhatsApp sends us to avoid BREAKING CHANGES.
Description
Unconsistent output from getAllChats() and getAllChatsWithMessages()
Environment
Output
getAllChats()
getAllChatsWithMessages()
With getAllChats() I can see there is contact data but no message, but with getAllChatsWithMessages() the messages is there but not the contact data. I want to use the contact data to display the contact and the message data to display the latest message
The text was updated successfully, but these errors were encountered: