wppconnect-team / wa-js

WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web
https://wppconnect.io/wa-js/
Apache License 2.0
436 stars 139 forks source link

I want to create a custome filters like "friends", "office colleagues", "leads", etc. How can i create one #2507

Closed Khushal-Batham closed 1 week ago

Khushal-Batham commented 1 week ago

Filters are not working. Is there any way to filter chats based.

Describe the solution you'd like I can create a custome filter and add contact/chats in it. Such that it can organise my contacts. There can be some method or way or function through which I can create new filter and chatlist

Describe alternatives you've considered Till now, we are using __x_shouldAppearInList, shouldAppearInList method.

icleitoncosta commented 1 week ago

Please, test the PR https://github.com/wppconnect-team/wa-js/pull/2498

icleitoncosta commented 1 week ago

Already merge PR, you can use WPP.chat.setChatList function