summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-11-02 16:23:15 +0000
committerMark Haines <mark.haines@matrix.org>2015-11-02 16:23:15 +0000
commit57be722c461f7727153d9563f20620f5a0549f5b (patch)
treefd42f06c126b3819bcd70d3a740ed1441a42e811 /synapse/api
parentStore room tag content and return the content in the m.tag event (diff)
downloadsynapse-57be722c461f7727153d9563f20620f5a0549f5b.tar.xz
Include room tags in v2 /sync
Diffstat (limited to 'synapse/api')
-rw-r--r--synapse/api/filtering.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/api/filtering.py b/synapse/api/filtering.py
index eb15d8c54a..e4e3d1c59d 100644
--- a/synapse/api/filtering.py
+++ b/synapse/api/filtering.py
@@ -147,6 +147,10 @@ class FilterCollection(object):
             self.filter_json.get("room", {}).get("ephemeral", {})
         )
 
+        self.room_private_user_data = Filter(
+            self.filter_json.get("room", {}).get("private_user_data", {})
+        )
+
         self.presence_filter = Filter(
             self.filter_json.get("presence", {})
         )
@@ -172,6 +176,9 @@ class FilterCollection(object):
     def filter_room_ephemeral(self, events):
         return self.room_ephemeral_filter.filter(events)
 
+    def filter_room_private_user_data(self, events):
+        return self.room_private_user_data.filter(events)
+
 
 class Filter(object):
     def __init__(self, filter_json):