summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-05-31 10:52:59 +0100
committerGitHub <noreply@github.com>2019-05-31 10:52:59 +0100
commite9981d58ca98a6aa0084409e1c2da9efd24c2177 (patch)
treec8589059d542fc5d31e3376f3143bfa11c290d7d /synapse
parentMerge pull request #5294 from matrix-org/erikj/speed_up_room_stats (diff)
parentAdd changelog (diff)
downloadsynapse-e9981d58ca98a6aa0084409e1c2da9efd24c2177.tar.xz
Merge pull request #5293 from Kagamihime/messages-federation-format
Fix ignored filter field in `/messages` endpoint
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v1/room.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/v1/room.py b/synapse/rest/client/v1/room.py
index 255a85c588..b92c6a9a9c 100644
--- a/synapse/rest/client/v1/room.py
+++ b/synapse/rest/client/v1/room.py
@@ -475,6 +475,8 @@ class RoomMessageListRestServlet(ClientV1RestServlet):
         if filter_bytes:
             filter_json = urlparse.unquote(filter_bytes.decode("UTF-8"))
             event_filter = Filter(json.loads(filter_json))
+            if event_filter.filter_json.get("event_format", "client") == "federation":
+                as_client_event = False
         else:
             event_filter = None
         msgs = yield self.pagination_handler.get_messages(