Skip to content

Commit

Permalink
Set decrypt-fail for poll votes
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 13, 2023
1 parent 3d38622 commit f17761e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion send.go
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ func (cli *Client) prepareMessageNode(ctx context.Context, to, ownID types.JID,
attrs["edit"] = string(editAttr)
encAttrs["decrypt-fail"] = string(events.DecryptFailHide)
}
if msgType == "reaction" {
if msgType == "reaction" || message.GetPollUpdateMessage() != nil {
encAttrs["decrypt-fail"] = string(events.DecryptFailHide)
}

Expand Down

0 comments on commit f17761e

Please sign in to comment.