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
feat: vote_update
event
#2596
feat: vote_update
event
#2596
Conversation
Co-authored-by: tuyuribr <[email protected]>
Pull request was converted to draft
Will this work for WhatsApp web 2.3x for now / future? Thanks! |
As soon as the patch is a part of |
Got it. Thanks for your help! |
Não consigo utilizar e ler o voto do usuário. Alguém pode me ajudar? |
|
você reenviou essa página, desculpa mas isso não me ajudou. |
* Merge branch 'add-polls' into polls-ext * added listener to poll votes * added isUnvote property * added option for custom message secret * usage example updated * added logic for catching removed votes * usage example updated * fixed logic for poll vote events * temp usage example * No more `isCurrentState` * messageSecret converted to array Co-authored-by: tuyuribr <[email protected]> * docs updated * we already have messageSecret in vote.parentMessage * PollVote.selectedOptions changed to be similar to pollOptions * docs fixed * window.injectToFunction clarifications * minor clarifications * fix: typo * style: fix broken link in readme file --------- Co-authored-by: tuyuribr <[email protected]>
The code is reference from pedroslopez#2596
This reverts commit 9cac8fd.
Table of Contents
- Description
- Related Issues
- Usage Example
- I Want to Test this PR
- I Got an Error While Testing This PR ❌
- How Has the PR Been Tested (latest test on 22.04.2024)
- Types of Changes
Special thanks to @tuyuribr for his help
Description
The PR adds an event that will be triggered when users vote or unvote in a poll.
Each time the event is fired, it shows a user's current selected option(s) on the poll.
Related Issues
The PR closes #2494, closes #2626
Usage Example
To test this PR by yourself you should do two steps:
1. Install the PR by running one of the following commands:
2. Lock your WWeb version on 2.2412.54:
If you encounter any errors while testing this PR, please provide in a comment:
console.log(await client.getWWebVersion());
Important
You have to reapply the PR each time it is changed (new commits were pushed since your last application)
How Has The PR Been Tested (latest test on 22.04.2024)
Tested by selecting and deselecting poll options in both single-option and multiple-option polls.
Tested On:
Types of accounts:
Environment:
Types of Changes
Checklist