summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-12-16 16:24:10 +0000
committerGitHub <noreply@github.com>2019-12-16 16:24:10 +0000
commit6316530366c8d7e8ee9e2c06009312c5405a352b (patch)
treeb607e22e9be4a0caac1c03022eaf753b4abc0ead /synapse/visibility.py
parentExclude rejected state events when calculating state at backwards extrems (#6... (diff)
parentMerge branch 'babolivier/fix-context-filter' of github.com:matrix-org/synapse... (diff)
downloadsynapse-6316530366c8d7e8ee9e2c06009312c5405a352b.tar.xz
Merge pull request #6553 from matrix-org/babolivier/fix-context-filter
 Use the filtered version of an event when responding to /context requests for that event
Diffstat (limited to 'synapse/visibility.py')
-rw-r--r--synapse/visibility.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/visibility.py b/synapse/visibility.py
index dffe943b28..100dc47a8a 100644
--- a/synapse/visibility.py
+++ b/synapse/visibility.py
@@ -52,7 +52,8 @@ def filter_events_for_client(
     apply_retention_policies=True,
 ):
     """
-    Check which events a user is allowed to see
+    Check which events a user is allowed to see. If the user can see the event but its
+    sender asked for their data to be erased, prune the content of the event.
 
     Args:
         storage