mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-19 20:33:45 +02:00
use an empty url field
This commit is contained in:
parent
995b3ea207
commit
38128830cc
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue