Don't encrypt reaction events for now

Fixes https://github.com/matrix-org/pantalaimon/issues/23
This commit is contained in:
Travis Ralston 2019-10-09 11:24:07 +01:00
parent 8021c49d34
commit a11c9274ef

View File

@ -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)