summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2023-03-21 19:59:28 +0000
committerRichard van der Hoff <richard@matrix.org>2023-03-21 19:59:28 +0000
commita9216edbaa0f44752790040a833847a7898ddc0a (patch)
treed5edbfcdbd8e18c94468248cb259ca26af6038db /synapse/handlers
parentMerge branch 'release-v1.80' of https://github.com/matrix-org/synapse into re... (diff)
parentRevert "check sqlite database file exists before porting/#14692" (#15301) (diff)
downloadsynapse-a9216edbaa0f44752790040a833847a7898ddc0a.tar.xz
Merge commit '96bcc5d902' into release-v1.80
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/events.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py

index 68c07f0265..33359f6ed7 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py
@@ -159,15 +159,16 @@ class EventHandler: Returns: An event, or None if there is no event matching this ID. Raises: - SynapseError if there was a problem retrieving this event, or - AuthError if the user does not have the rights to inspect this - event. + AuthError: if the user does not have the rights to inspect this event. """ redact_behaviour = ( EventRedactBehaviour.as_is if show_redacted else EventRedactBehaviour.redact ) event = await self.store.get_event( - event_id, check_room_id=room_id, redact_behaviour=redact_behaviour + event_id, + check_room_id=room_id, + redact_behaviour=redact_behaviour, + allow_none=True, ) if not event: