mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2024-12-17 20:04:34 -05:00
bugfix
This commit is contained in:
parent
0bf49f7fdd
commit
33e938b095
@ -952,12 +952,16 @@ class ProxyDaemon:
|
||||
body=await response.transport_response.read(),
|
||||
)
|
||||
|
||||
content = media_info.to_content(content["url"],
|
||||
media_content = media_info.to_content(content["url"],
|
||||
file_name,
|
||||
content_msgtype,
|
||||
upload_info.mimetype
|
||||
),
|
||||
|
||||
response = await client.room_send(
|
||||
room_id, msgtype, media_content, txnid, ignore_unverified
|
||||
)
|
||||
else:
|
||||
response = await client.room_send(
|
||||
room_id, msgtype, content, txnid, ignore_unverified
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user