use an empty url field

This commit is contained in:
Marco Alvarez 2024-01-03 18:21:50 +01:00
parent 995b3ea207
commit 38128830cc

View file

@ -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