Open henriquecm opened 5 days ago
for now try using this function
WPP.whatsapp.Cmd.on('set_active_filter', (a) => { console.log('event: set_active_filter', a) })
to see existing events
window.require("WAWebCmd").Cmd._events
for now try using this function
WPP.whatsapp.Cmd.on('set_active_filter', (a) => { console.log('event: set_active_filter', a) })
to see existing events
window.require("WAWebCmd").Cmd._events
Exact @dllsystem !
Is your feature request related to a problem? Please describe. When using the
WPP.chat.setChatList
, I can try to keep track of what type of filter was applied, but if the user clear/change the Chat Filter using WhatsApp native filters I lose track of what filter is currently applied.Describe the solution you'd like An event that returns the current filter being applied.
Describe alternatives you've considered Using a setInterval to check a __reactProps$ of an element that I found that has the current filter.
Additional context
I will working in new way to create custom lists. Whatsapp is releasing a new function for do, and I use it
You can follow in https://github.com/wppconnect-team/wa-js/pull/2517
Thanks, I never used the WPP.whatsapp.Cmd
before, I'll look into it, maybe I find new ways improve some others thing with it.
Is your feature request related to a problem? Please describe. When using the
WPP.chat.setChatList
, I can try to keep track of what type of filter was applied, but if the user clear/change the Chat Filter using WhatsApp native filters I lose track of what filter is currently applied.Describe the solution you'd like An event that returns the current filter being applied.
Describe alternatives you've considered Using a setInterval to check a __reactProps$ of an element that I found that has the current filter.
Additional context