summary refs log tree commit diff
path: root/synapse/visibility.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-03-19 19:16:47 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-03-19 19:16:47 +0000
commit194287c2ec124cd0d3379384cd580bec2e8c0dcc (patch)
tree7a3ee653a8e4cd3831cba3052e3e5a756871deaa /synapse/visibility.py
parentAdd option to allow profile queries without sharing a room (#6523) (diff)
parentMerge pull request #6553 from matrix-org/babolivier/fix-context-filter (diff)
downloadsynapse-194287c2ec124cd0d3379384cd580bec2e8c0dcc.tar.xz
Merge pull request #6553 from matrix-org/babolivier/fix-context-filter
* commit '631653036':
  Incorporate review
  Update changelog.d/6553.bugfix
  Lint
  Add test case
  Changelog
  Update the documentation of the filtering function
  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