This commit is contained in:
Andrea Spacca 2021-01-07 11:57:36 +01:00
parent 0bf49f7fdd
commit 33e938b095

View File

@ -952,12 +952,16 @@ class ProxyDaemon:
body=await response.transport_response.read(), body=await response.transport_response.read(),
) )
content = media_info.to_content(content["url"], media_content = media_info.to_content(content["url"],
file_name, file_name,
content_msgtype, content_msgtype,
upload_info.mimetype upload_info.mimetype
), ),
response = await client.room_send(
room_id, msgtype, media_content, txnid, ignore_unverified
)
else:
response = await client.room_send( response = await client.room_send(
room_id, msgtype, content, txnid, ignore_unverified room_id, msgtype, content, txnid, ignore_unverified
) )