Also don't fail on aliases events in this case

pull/7066/head
Brendan Abolivier 2020-03-11 18:43:41 +00:00
parent e38c44b418
commit 37a9873f63
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ def filter_events_for_client(
# now we temporarily filter out m.room.aliases entirely to mitigate # now we temporarily filter out m.room.aliases entirely to mitigate
# abuse, while we spec a better solution to advertising aliases # abuse, while we spec a better solution to advertising aliases
# on rooms. # on rooms.
if event.type == EventTypes.Aliases: if event.type == EventTypes.Aliases and filter_send_to_client:
return None return None
# Don't try to apply the room's retention policy if the event is a state event, as # Don't try to apply the room's retention policy if the event is a state event, as