mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-07-06 12:24:48 -04:00
Don't encrypt reaction events for now
Fixes https://github.com/matrix-org/pantalaimon/issues/23
This commit is contained in:
parent
8021c49d34
commit
a11c9274ef
1 changed files with 6 additions and 0 deletions
|
@ -790,6 +790,12 @@ class ProxyDaemon:
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return await self.forward_to_web(request, token=client.access_token)
|
return await self.forward_to_web(request, token=client.access_token)
|
||||||
|
|
||||||
|
# Don't encrypt reactions for now - they are weird and clients
|
||||||
|
# need to support them like this.
|
||||||
|
# TODO: Fix when MSC1849 is fully supported by clients.
|
||||||
|
if request.match_info["event_type"] == "m.reaction":
|
||||||
|
encrypt = False
|
||||||
|
|
||||||
# The room isn't encrypted just forward the message.
|
# The room isn't encrypted just forward the message.
|
||||||
if not encrypt:
|
if not encrypt:
|
||||||
return await self.forward_to_web(request, token=client.access_token)
|
return await self.forward_to_web(request, token=client.access_token)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue