Skip to content

msgsecret: fix poll vote encryption using wrong identity #1107

Open
kalix127 wants to merge 1 commit intotulir:mainfrom
kalix127:fix/poll-vote-decrypt-fail
Open

msgsecret: fix poll vote encryption using wrong identity #1107
kalix127 wants to merge 1 commit intotulir:mainfrom
kalix127:fix/poll-vote-decrypt-fail

Conversation

@kalix127
Copy link
Copy Markdown

EncryptPollVote uses cli.getOwnID() (Phone Number JID) for key derivation, but SendMessage sends using LID identity. WhatsApp recipients derive the decryption key using the LID, causing a mismatch and decrypt-fail="hide" on all encrypted poll vote payloads.

EncryptComment and EncryptReaction already use cli.getOwnLID() correctly. This change aligns EncryptPollVote
with them.

Also removes the TODO on line 350 which questioned whether polls should use LID.

Fixes #1076
See also mautrix/whatsapp#681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Poll voting not working

1 participant