summary refs log tree commit diff
path: root/synapse/handlers/message.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/message.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/message.py')
-rw-r--r--synapse/handlers/message.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py
index 1b092e900e..95a89ac01f 100644
--- a/synapse/handlers/message.py
+++ b/synapse/handlers/message.py
@@ -1407,7 +1407,7 @@ class EventCreationHandler:
 
                 original_event = await self.store.get_event(
                     event.redacts,
-                    redact_behaviour=EventRedactBehaviour.AS_IS,
+                    redact_behaviour=EventRedactBehaviour.as_is,
                     get_prev_content=False,
                     allow_rejected=False,
                     allow_none=True,
@@ -1504,7 +1504,7 @@ class EventCreationHandler:
 
             original_event = await self.store.get_event(
                 event.redacts,
-                redact_behaviour=EventRedactBehaviour.AS_IS,
+                redact_behaviour=EventRedactBehaviour.as_is,
                 get_prev_content=False,
                 allow_rejected=False,
                 allow_none=True,