summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-03-14 13:55:29 +0000
committerErik Johnston <erik@matrix.org>2019-03-14 13:55:29 +0000
commit404a2d70be1ee70597bd44f8fc02370952e8b0b3 (patch)
tree78f356a56f6dafa62b14bdb401c45e31a12aab5e /synapse/visibility.py
parentReinstate EDU-batching hacks (diff)
parentMerge pull request #4846 from matrix-org/hawkowl/userdir-search (diff)
downloadsynapse-404a2d70be1ee70597bd44f8fc02370952e8b0b3.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r--synapse/visibility.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py

index efec21673b..16c40cd74c 100644 --- a/synapse/visibility.py +++ b/synapse/visibility.py
@@ -67,6 +67,10 @@ def filter_events_for_client(store, user_id, events, is_peeking=False, Returns: Deferred[list[synapse.events.EventBase]] """ + # Filter out events that have been soft failed so that we don't relay them + # to clients. + events = list(e for e in events if not e.internal_metadata.is_soft_failed()) + types = ( (EventTypes.RoomHistoryVisibility, ""), (EventTypes.Member, user_id),