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

Label.getChats returns empty array #3111

Open
1 task done
Benornm opened this issue Jun 19, 2024 · 0 comments
Open
1 task done

Label.getChats returns empty array #3111

Benornm opened this issue Jun 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Benornm
Copy link

Benornm commented Jun 19, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

The label.getChats method is returning an empty array even though there are chats associated with the label.
This issue persists despite having verified that chats exist under the specified label.

It happens every time i logged in, sometimes it gets fixed after 1-2 hours, and sometimes its not.

Someone can help?

Expected behavior

Get all chats from label

Steps to Reproduce the Bug or Issue

  1. Get label by labelId
  2. Get chats from label

Relevant Code

const label = await client.getLabelById(labelId);
const chats = await label?.getChats();

Browser Type

Chromium

WhatsApp Account Type

WhatsApp Business

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

whatsapp-web.js version 1.23

Additional context

No response

@Benornm Benornm added the bug Something isn't working label Jun 19, 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
Projects
None yet
Development

No branches or pull requests

1 participant