summary refs log tree commit diff
path: root/synapse/state
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-12-11 13:39:47 +0000
committerGitHub <noreply@github.com>2019-12-11 13:39:47 +0000
commitfc316a4894912f49f5d0321e533aabca5624b0ba (patch)
tree4dc0618d04cd9f3bfc3f451f412bc197263f4814 /synapse/state
parentAdd dev script to generate full SQL schema files (#6394) (diff)
downloadsynapse-fc316a4894912f49f5d0321e533aabca5624b0ba.tar.xz
Prevent redacted events from appearing in message search (#6377)
Diffstat (limited to 'synapse/state')
-rw-r--r--synapse/state/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/state/__init__.py b/synapse/state/__init__.py

index 139beef8ed..3e6d62eef1 100644 --- a/synapse/state/__init__.py +++ b/synapse/state/__init__.py
@@ -32,6 +32,7 @@ from synapse.events import EventBase from synapse.events.snapshot import EventContext from synapse.logging.utils import log_function from synapse.state import v1, v2 +from synapse.storage.data_stores.main.events_worker import EventRedactBehaviour from synapse.util.async_helpers import Linearizer from synapse.util.caches import get_cache_factor_for from synapse.util.caches.expiringcache import ExpiringCache @@ -645,7 +646,7 @@ class StateResolutionStore(object): return self.store.get_events( event_ids, - check_redacted=False, + redact_behaviour=EventRedactBehaviour.AS_IS, get_prev_content=False, allow_rejected=allow_rejected, )