Skip to content

Commit

Permalink
Try adding SIM payload when sending reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Mar 7, 2024
1 parent 0799d55 commit c8478ea
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
27 changes: 18 additions & 9 deletions libgm/gmproto/client.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified libgm/gmproto/client.pb.raw
Binary file not shown.
1 change: 1 addition & 0 deletions libgm/gmproto/client.proto
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ message SendReactionRequest {
string messageID = 1;
conversations.ReactionData reactionData = 2;
Action action = 3;
settings.SIMPayload SIMPayload = 4;
}

message SendReactionResponse {
Expand Down
1 change: 1 addition & 0 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,7 @@ func (portal *Portal) handleMatrixReaction(sender *User, evt *event.Event) error
MessageID: msg.ID,
ReactionData: gmproto.MakeReactionData(emoji),
Action: action,
SIMPayload: sender.GetSIM(portal.OutgoingID).GetSIMData().GetSIMPayload(),
})
if err != nil {
return fmt.Errorf("failed to send reaction: %w", err)
Expand Down

0 comments on commit c8478ea

Please sign in to comment.