Fully qualify emojis instead of removing variation selector

This commit is contained in:
Tulir Asokan 2024-03-07 17:05:42 +02:00
parent e5b70c0b18
commit d01ae575d2

View file

@ -2099,7 +2099,7 @@ func (portal *Portal) handleMatrixReaction(sender *User, evt *event.Event) error
return fmt.Errorf("failed to get existing reaction from database") return fmt.Errorf("failed to get existing reaction from database")
} }
emoji := variationselector.Remove(content.RelatesTo.Key) emoji := variationselector.FullyQualify(content.RelatesTo.Key)
action := gmproto.SendReactionRequest_ADD action := gmproto.SendReactionRequest_ADD
if existingReaction != nil { if existingReaction != nil {
action = gmproto.SendReactionRequest_SWITCH action = gmproto.SendReactionRequest_SWITCH