Skip to content

Commit

Permalink
Disable DMA for lottie stickers
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Feb 18, 2024
1 parent 1a9ba73 commit 2cd86ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion portal_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ func (portal *Portal) convertDiscordSticker(ctx context.Context, intent *appserv
}

mxc := portal.bridge.DMA.StickerMXC(sticker.ID, sticker.FormatType)
if mxc.IsEmpty() {
// TODO add config option to use direct media even for lottie stickers
if mxc.IsEmpty() && mime != "application/json" {
content = portal.convertDiscordFile(ctx, "sticker", intent, sticker.ID, sticker.URL(), content)
} else {
content.URL = mxc.CUString()
Expand Down

0 comments on commit 2cd86ab

Please sign in to comment.