s/_create_new_client_event/create_new_client_event/
parent
25c0a020f4
commit
770b2252ca
|
@ -1008,7 +1008,7 @@ class FederationHandler(BaseHandler):
|
|||
})
|
||||
|
||||
try:
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder=builder,
|
||||
)
|
||||
except AuthError as e:
|
||||
|
@ -1248,7 +1248,7 @@ class FederationHandler(BaseHandler):
|
|||
"state_key": user_id,
|
||||
})
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder=builder,
|
||||
)
|
||||
|
||||
|
@ -2119,7 +2119,7 @@ class FederationHandler(BaseHandler):
|
|||
if (yield self.auth.check_host_in_room(room_id, self.hs.hostname)):
|
||||
builder = self.event_builder_factory.new(event_dict)
|
||||
EventValidator().validate_new(builder)
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder=builder
|
||||
)
|
||||
|
||||
|
@ -2157,7 +2157,7 @@ class FederationHandler(BaseHandler):
|
|||
"""
|
||||
builder = self.event_builder_factory.new(event_dict)
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder=builder,
|
||||
)
|
||||
|
||||
|
@ -2207,7 +2207,7 @@ class FederationHandler(BaseHandler):
|
|||
|
||||
builder = self.event_builder_factory.new(event_dict)
|
||||
EventValidator().validate_new(builder)
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder=builder,
|
||||
)
|
||||
defer.returnValue((event, context))
|
||||
|
|
|
@ -378,7 +378,7 @@ class EventCreationHandler(object):
|
|||
if txn_id is not None:
|
||||
builder.internal_metadata.txn_id = txn_id
|
||||
|
||||
event, context = yield self._create_new_client_event(
|
||||
event, context = yield self.create_new_client_event(
|
||||
builder=builder,
|
||||
requester=requester,
|
||||
prev_event_ids=prev_event_ids,
|
||||
|
@ -486,9 +486,9 @@ class EventCreationHandler(object):
|
|||
)
|
||||
defer.returnValue(event)
|
||||
|
||||
@measure_func("_create_new_client_event")
|
||||
@measure_func("create_new_client_event")
|
||||
@defer.inlineCallbacks
|
||||
def _create_new_client_event(self, builder, requester=None, prev_event_ids=None):
|
||||
def create_new_client_event(self, builder, requester=None, prev_event_ids=None):
|
||||
if prev_event_ids:
|
||||
prev_events = yield self.store.add_event_hashes(prev_event_ids)
|
||||
prev_max_depth = yield self.store.get_max_depth_of_events(prev_event_ids)
|
||||
|
|
|
@ -58,7 +58,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
"content": content,
|
||||
})
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder
|
||||
)
|
||||
|
||||
|
@ -78,7 +78,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
"content": {"body": body, "msgtype": u"message"},
|
||||
})
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder
|
||||
)
|
||||
|
||||
|
@ -97,7 +97,7 @@ class RedactionTestCase(unittest.TestCase):
|
|||
"redacts": event_id,
|
||||
})
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder
|
||||
)
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ class RoomMemberStoreTestCase(unittest.TestCase):
|
|||
"content": {"membership": membership},
|
||||
})
|
||||
|
||||
event, context = yield self.event_creation_handler._create_new_client_event(
|
||||
event, context = yield self.event_creation_handler.create_new_client_event(
|
||||
builder
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue