From 38128830cc06738870a5b7491590e0791f4ae580 Mon Sep 17 00:00:00 2001 From: Marco Alvarez Date: Wed, 3 Jan 2024 18:21:50 +0100 Subject: [PATCH] use an empty url field --- portal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portal.go b/portal.go index 8f22ab79..dfb41e2c 100644 --- a/portal.go +++ b/portal.go @@ -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