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
The chat.isGroup property is returning undefined when retrieving chat data using client.getAllChats(). This issue makes it impossible to reliably filter group chats from personal chats.
Environment
Venom version(s): [e.g. 2.0.27, 2.2.1]
Browser: [e.g. Chrome 87, Chromium 85]
OS: [e.g. OSX 10.13.4, Windows 10]
Node version: [e.g. Node 8, Node 14]
Steps to Reproduce
Initialize a Venom client and log in using a WhatsApp session.
Use client.getAllChats() to retrieve chat data.
Iterate over the retrieved chats and log the isGroup property of each chat.
Observe that chat.isGroup is returning undefined for all cha
Log Output
[2024-12-23T12:34:56.789Z] Retrieving all chats...
Chat name: Group A | isGroup: undefined
Chat name: Group B | isGroup: undefined
Chat name: Personal Chat 1 | isGroup: undefined
Description
The chat.isGroup property is returning undefined when retrieving chat data using client.getAllChats(). This issue makes it impossible to reliably filter group chats from personal chats.
Environment
Steps to Reproduce
Initialize a Venom client and log in using a WhatsApp session.
Use client.getAllChats() to retrieve chat data.
Iterate over the retrieved chats and log the isGroup property of each chat.
Observe that chat.isGroup is returning undefined for all cha
Log Output
[2024-12-23T12:34:56.789Z] Retrieving all chats...
Chat name: Group A | isGroup: undefined
Chat name: Group B | isGroup: undefined
Chat name: Personal Chat 1 | isGroup: undefined
Your Code
Example
const chats = await client.getAllChats();
chats.forEach((chat) => {
console.log(
Chat: ${chat.name}, isGroup: ${chat.isGroup}
);});
The text was updated successfully, but these errors were encountered: