wa-js: Some of attributes of chat.list are returning undefined
WA-JS Version
3.14.2-alpha.0
WhatsApp Version
2.3000.1018197845
Browser Version
Chrome 130
Operation System
Window 11
Steps to reproduce
let a = WPP.whatsapp.ChatStore._models;
undefined
a[0].kind
undefined
a[0].isUser
undefined
a[0].isPSA
undefined
a[0].isParentGroup
undefined
a[0].shouldAppearInList
undefined
a[0].previewMessage
undefined
a[0].showChangeNumberNotification
undefined
a[0].shouldShowUnreadInTitle
undefined
What is expected?
return proper output
What is actually happening?
undefined
Any additional comments?
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- fix: Fixed some attributes in ChatModel (close #2491) — committed to wppconnect-team/wa-js by icleitoncosta 2 years ago
@bracketsApps007 @icleitoncosta ,
I want to create a custome filters like “friends”, “office colleagues”, “leads”, etc. How can i create one? Is there any method in WPP from which I can create a custome filters?
In WAJS, there is no method for such a task. I could try to create something to handle it, maybe by wrapping the function that processes the lists. Today, it’s possible to do this using tags, but only in the business version.
Please open a specific issue for this, and I will try to work on it during the week.
To filter only unread messages
WPP.whatsapp.Cmd.setActiveFilter('unread')to filter only groupsWPP.whatsapp.Cmd.setActiveFilter('group')Show allWPP.whatsapp.Cmd.setActiveFilter('')only working this pre defined lists… No any way to filter custom chats
Filtering chats is still not working with the patch for me. @icleitoncosta