Skip to content

Commit

Permalink
Don't encrypt reactions. Fixes #400
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Dec 29, 2023
1 parent 175fde6 commit af2f71b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1622,10 +1622,12 @@ func (portal *Portal) sendMatrixReaction(intent *appservice.IntentAPI, eventType
}
func (portal *Portal) sendMatrixEventContent(intent *appservice.IntentAPI, eventType event.Type, content interface{}, extraContent map[string]interface{}, timestamp int64) (*mautrix.RespSendEvent, error) {
wrappedContent := event.Content{Parsed: content, Raw: extraContent}
var err error
eventType, err = portal.encrypt(intent, &wrappedContent, eventType)
if err != nil {
return nil, err
if eventType != event.EventReaction {
var err error
eventType, err = portal.encrypt(intent, &wrappedContent, eventType)
if err != nil {
return nil, err
}
}

_, _ = intent.UserTyping(portal.MXID, false, 0)
Expand Down

0 comments on commit af2f71b

Please sign in to comment.