Skip to content

Commit

Permalink
use an empty url field
Browse files Browse the repository at this point in the history
  • Loading branch information
surakin committed Jan 3, 2024
1 parent 995b3ea commit 3812883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -3504,7 +3504,7 @@ func (portal *Portal) convertMediaMessage(intent *appservice.IntentAPI, source *
// Sticker events require the URL field to be present https://spec.matrix.org/v1.9/client-server-api/#events-16
// This seems to affect only clients based on the Rust SDK on encrypted channels (like Element X)
if typeName == "sticker" && converted.Content.File != nil {
converted.Content.URL = converted.Content.File.URL
converted.Extra["url"] = ""
}

return converted
Expand Down

0 comments on commit 3812883

Please sign in to comment.