Skip to content

Commit

Permalink
Fix decrypting message secret reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 10, 2023
1 parent 6e8b189 commit 93091c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msgsecret.go
Expand Up @@ -132,7 +132,7 @@ func (cli *Client) encryptMsgSecret(chat, origSender types.JID, origMsgID types.
// }
func (cli *Client) DecryptReaction(reaction *events.Message) (*waProto.ReactionMessage, error) {
encReaction := reaction.Message.GetEncReactionMessage()
if encReaction != nil {
if encReaction == nil {
return nil, ErrNotEncryptedReactionMessage
}
plaintext, err := cli.decryptMsgSecret(reaction, EncSecretReaction, encReaction, encReaction.GetTargetMessageKey())
Expand Down

0 comments on commit 93091c7

Please sign in to comment.