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
Hi, I'm building an application that uses two linked devices (same phone number, two separate whatsmeow clients with separate SQLite stores). I'm running into a consistent issue with DecryptPollVote when a vote is cast programmatically and received on the other client.
Important note: the issue only occurs when the vote is sent via BuildPollVote + SendMessage. When the same vote is cast manually from the WhatsApp app, DecryptPollVote succeeds on both clients without any issues.
The vote is sent successfully and appears correctly in the WhatsApp app. However, when the vote arrives as a *events.Message on the second client (not the one that sent the vote), DecryptPollVote fails with cipher: message authentication failed.
This only happens with polls that originally arrived via history sync. Polls received as live messages decrypt fine on both clients without any errors.
The full error message looks like this:
failed to decrypt poll vote: failed to decrypt secret message: cipher: message authentication failed
(sender: placeholder_id@s.whatsapp.net, orig sender: placeholder_Id@lid and placeholder_id@lid)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hi, I'm building an application that uses two linked devices (same phone number, two separate whatsmeow clients with separate SQLite stores). I'm running into a consistent issue with DecryptPollVote when a vote is cast programmatically and received on the other client.
Important note: the issue only occurs when the vote is sent via BuildPollVote + SendMessage. When the same vote is cast manually from the WhatsApp app, DecryptPollVote succeeds on both clients without any issues.
Here is how I build the vote:
The vote is sent successfully and appears correctly in the WhatsApp app. However, when the vote arrives as a *events.Message on the second client (not the one that sent the vote), DecryptPollVote fails with cipher: message authentication failed.
This only happens with polls that originally arrived via history sync. Polls received as live messages decrypt fine on both clients without any errors.
The full error message looks like this:
Will appreciate any help!
All reactions