mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-19 20:33:45 +02:00
Compare commits
6 commits
12474f4a63
...
d26e8dd953
Author | SHA1 | Date | |
---|---|---|---|
d26e8dd953 | |||
38128830cc | |||
995b3ea207 | |||
0ebb235e61 | |||
598e6e68fc | |||
c9175c3f36 |
|
@ -3500,6 +3500,13 @@ func (portal *Portal) convertMediaMessage(intent *appservice.IntentAPI, source *
|
|||
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue