mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-06-02 19:19:11 +02:00
Always add URL field on media events
Fixes https://github.com/mautrix/whatsapp/issues/662 Fixes https://github.com/element-hq/element-x-ios/issues/1047
This commit is contained in:
parent
4efb226045
commit
c9175c3f36
|
@ -3434,6 +3434,7 @@ func (portal *Portal) uploadMedia(intent *appservice.IntentAPI, data []byte, con
|
||||||
if file != nil {
|
if file != nil {
|
||||||
file.URL = mxc.CUString()
|
file.URL = mxc.CUString()
|
||||||
content.File = file
|
content.File = file
|
||||||
|
content.URL = mxc.CUString()
|
||||||
} else {
|
} else {
|
||||||
content.URL = mxc.CUString()
|
content.URL = mxc.CUString()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue