Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat.isGroup is returning undefined #2832

Open
Ionasjospo opened this issue Dec 23, 2024 · 0 comments
Open

chat.isGroup is returning undefined #2832

Ionasjospo opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working needs triage Needs avaliation

Comments

@Ionasjospo
Copy link

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

  • 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

Your Code

Example
const chats = await client.getAllChats();
chats.forEach((chat) => {
console.log(Chat: ${chat.name}, isGroup: ${chat.isGroup});
});

@Ionasjospo Ionasjospo added bug Something isn't working needs triage Needs avaliation labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Needs avaliation
Projects
None yet
Development

No branches or pull requests

1 participant