mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 05:11:54 -05: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
|
|
@ -943,7 +943,7 @@ class EventsPersistenceStorage:
|
|||
dropped_events = await self.main_store.get_events(
|
||||
dropped_extrems,
|
||||
allow_rejected=True,
|
||||
redact_behaviour=EventRedactBehaviour.AS_IS,
|
||||
redact_behaviour=EventRedactBehaviour.as_is,
|
||||
)
|
||||
|
||||
new_senders = {get_domain_from_id(e.sender) for e, _ in events_context}
|
||||
|
|
@ -974,7 +974,7 @@ class EventsPersistenceStorage:
|
|||
prev_events = await self.main_store.get_events(
|
||||
new_events,
|
||||
allow_rejected=True,
|
||||
redact_behaviour=EventRedactBehaviour.AS_IS,
|
||||
redact_behaviour=EventRedactBehaviour.as_is,
|
||||
)
|
||||
events_to_check = prev_events.values()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue