mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-19 20:33:45 +02:00
fix lint
This commit is contained in:
parent
0ebb235e61
commit
995b3ea207
|
@ -3502,7 +3502,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)
|
||||
// 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue