From 628b0def512d3da3515ce1458c690a1d4fbc37bb Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 10 Feb 2020 09:36:23 +0000 Subject: [PATCH] Revert "filter out m.room.aliases from the CS API until a better solution is specced (#6878)" This reverts commit 8e64c5a24c26a733c0cfd3e997ea4079ae457096. --- synapse/visibility.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/synapse/visibility.py b/synapse/visibility.py index d0abd8f04ffc..100dc47a8a04 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py @@ -122,13 +122,6 @@ def allowed(event): if not event.is_state() and event.sender in ignore_list: return None - # Until MSC2261 has landed we can't redact malicious alias events, so for - # 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: - return None - # Don't try to apply the room's retention policy if the event is a state event, as # MSC1763 states that retention is only considered for non-state events. if apply_retention_policies and not event.is_state():