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:
Marco Alvarez 2023-12-29 15:27:03 +01:00
parent 4efb226045
commit c9175c3f36

View file

@ -3434,6 +3434,7 @@ func (portal *Portal) uploadMedia(intent *appservice.IntentAPI, data []byte, con
if file != nil {
file.URL = mxc.CUString()
content.File = file
content.URL = mxc.CUString()
} else {
content.URL = mxc.CUString()
}