Skip to content

Commit

Permalink
handlematrix: Fix M->T GIF sending
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpShell committed Oct 10, 2024
1 parent 45136b4 commit 05f44e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/connector/handlematrix.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func (tc *TwitterClient) HandleMatrixMessage(ctx context.Context, msg *bridgev2.
MediaType: MSG_TYPE_TO_MEDIA_TYPE[content.MsgType],
MediaCategory: MSG_TYPE_TO_MEDIA_CATEGORY[content.MsgType],
}
if content.Info.MimeType == "image/gif" {
uploadMediaParams.MediaType = "image/gif"
uploadMediaParams.MediaCategory = "dm_gif"
}
uploadedMediaResponse, err := tc.client.UploadMedia(uploadMediaParams, data)
if err != nil {
return nil, err
Expand Down

0 comments on commit 05f44e9

Please sign in to comment.