You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functiongetSelectedMessages(){letselectedIds=Array.from(document.querySelectorAll("[role='row'] [data-id]")).filter(i=>i.querySelector('input:checked')).map(i=>i.dataset["id"])constselectedMsgs=WPP.whatsapp.MsgStore._models.filter(i=>selectedIds.includes(i.id._serialized))returnselectedMsgs}// will return selected Messages object, and empty array if no selected messageconsole.log(getSelectedMessages())
It would be great to have this function baked into the lib.
I searched documents but not found the selected messages in activechat object.
I also wonder how to select the messages.
The text was updated successfully, but these errors were encountered: