mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-14 08:15:26 -04:00
Simplify _locally_reject_invite
Update `EventCreationHandler.create_event` to accept an auth_events param, and use it in `_locally_reject_invite` instead of reinventing the wheel.
This commit is contained in:
parent
d9d86c2996
commit
a34b17e492
6 changed files with 52 additions and 57 deletions
|
@ -236,9 +236,9 @@ class RedactionTestCase(unittest.HomeserverTestCase):
|
|||
self._event_id = event_id
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def build(self, prev_event_ids):
|
||||
def build(self, prev_event_ids, auth_event_ids):
|
||||
built_event = yield defer.ensureDeferred(
|
||||
self._base_builder.build(prev_event_ids)
|
||||
self._base_builder.build(prev_event_ids, auth_event_ids)
|
||||
)
|
||||
|
||||
built_event._event_id = self._event_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue