mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 14:14:19 -04:00
remove constantly lib use and switch to enums. (#12624)
This commit is contained in:
parent
873d467976
commit
01e625513a
11 changed files with 36 additions and 38 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue