mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-02-11 20:38:49 -05:00
overwrite content
This commit is contained in:
parent
a533c25efd
commit
404dfe568c
@ -911,6 +911,7 @@ class ProxyDaemon:
|
|||||||
if content_msgtype in ["m.image", "m.video", "m.audio", "m.file"]:
|
if content_msgtype in ["m.image", "m.video", "m.audio", "m.file"]:
|
||||||
try:
|
try:
|
||||||
content = await self._map_media_upload(content, request, client)
|
content = await self._map_media_upload(content, request, client)
|
||||||
|
return await self.forward_to_web(request, data=json.dumps(content), token=client.access_token)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
return await self.forward_to_web(request, token=client.access_token)
|
return await self.forward_to_web(request, token=client.access_token)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user