This commit is contained in:
Marco Antonio Alvarez 2024-03-12 15:35:24 +02:00 committed by GitHub
commit 12474f4a63
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3732,6 +3732,13 @@ func (portal *Portal) convertMediaMessage(ctx context.Context, intent *appservic
return portal.makeMediaBridgeFailureMessage(info, fmt.Errorf("failed to upload media: %w", err), converted, nil, "")
}
}
// 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.Extra["url"] = ""
}
return converted
}