summary refs log tree commit diff
path: root/synapse/handlers/events.py
diff options
context:
space:
mode:
authorandrew do <dohandrew@protonmail.com>2022-05-04 04:26:11 -0700
committerGitHub <noreply@github.com>2022-05-04 11:26:11 +0000
commit01e625513afbd9645ff642810d559f96fab13278 (patch)
treeac37613e8f0c2564c4cfef3ee12ad591097daefa /synapse/handlers/events.py
parentFixes to the formatting of README.rst (#12627) (diff)
downloadsynapse-01e625513afbd9645ff642810d559f96fab13278.tar.xz
remove constantly lib use and switch to enums. (#12624)
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r--synapse/handlers/events.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index 5b94b00bc3..82a5aac3dd 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -164,7 +164,7 @@ class EventHandler:
             event.
         """
         redact_behaviour = (
-            EventRedactBehaviour.AS_IS if show_redacted else EventRedactBehaviour.REDACT
+            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