mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-12-18 12:24:28 -05:00
bugfix
This commit is contained in:
parent
0bf49f7fdd
commit
33e938b095
@ -952,15 +952,19 @@ 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(
|
response = await client.room_send(
|
||||||
room_id, msgtype, content, txnid, ignore_unverified
|
room_id, msgtype, media_content, txnid, ignore_unverified
|
||||||
)
|
)
|
||||||
|
else:
|
||||||
|
response = await client.room_send(
|
||||||
|
room_id, msgtype, content, txnid, ignore_unverified
|
||||||
|
)
|
||||||
|
|
||||||
return web.Response(
|
return web.Response(
|
||||||
status=response.transport_response.status,
|
status=response.transport_response.status,
|
||||||
|
Loading…
Reference in New Issue
Block a user