summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-03-11 18:43:41 +0000
committerBrendan Abolivier <babolivier@matrix.org>2020-03-11 18:43:41 +0000
commit37a9873f6360a8e6f243c3d3d081ff7abc0f9da1 (patch)
treebd9f9f62419584aa7b54bc89390144abdfcc81dd /synapse/visibility.py
parentLint (diff)
downloadsynapse-37a9873f6360a8e6f243c3d3d081ff7abc0f9da1.tar.xz
Also don't fail on aliases events in this case
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r--synapse/visibility.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index fce5855413..56603eb276 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -132,7 +132,7 @@ def filter_events_for_client(
         # now we temporarily filter out m.room.aliases entirely to mitigate
         # abuse, while we spec a better solution to advertising aliases
         # on rooms.
-        if event.type == EventTypes.Aliases:
+        if event.type == EventTypes.Aliases and filter_send_to_client:
             return None
 
         # Don't try to apply the room's retention policy if the event is a state event, as