summary refs log tree commit diff
path: root/synapse/events/utils.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-07-03 10:31:17 +0100
committerErik Johnston <erik@matrix.org>2015-07-03 10:31:24 +0100
commit00ab882ed66d1ecdbd9de15c7ac591f4ee07b9f8 (patch)
tree702e570413fe4a87388b193a6b18fedfb2851fce /synapse/events/utils.py
parentMake v1 initial syncs respect room history ACL (diff)
downloadsynapse-00ab882ed66d1ecdbd9de15c7ac591f4ee07b9f8.tar.xz
Add m.room.history_visibility to list of auth events
Diffstat (limited to 'synapse/events/utils.py')
-rw-r--r--synapse/events/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 1aa952150e..4c82780f46 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -74,6 +74,8 @@ def prune_event(event):
         )
     elif event_type == EventTypes.Aliases:
         add_fields("aliases")
+    elif event_type == EventTypes.RoomHistoryVisibility:
+        add_fields("visibility")
 
     allowed_fields = {
         k: v