mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-01 07:04:16 -04:00
Finish renaming "context" to "room_id" in federation codebase
This commit is contained in:
parent
2408c4b0a4
commit
5fed042640
7 changed files with 62 additions and 99 deletions
|
@ -75,14 +75,14 @@ class FederationHandler(BaseHandler):
|
|||
|
||||
@log_function
|
||||
@defer.inlineCallbacks
|
||||
def handle_new_event(self, event, snapshot, destinations):
|
||||
def handle_new_event(self, event, destinations):
|
||||
""" Takes in an event from the client to server side, that has already
|
||||
been authed and handled by the state module, and sends it to any
|
||||
remote home servers that may be interested.
|
||||
|
||||
Args:
|
||||
event
|
||||
snapshot (.storage.Snapshot): THe snapshot the event happened after
|
||||
event: The event to send
|
||||
destinations: A list of destinations to send it to
|
||||
|
||||
Returns:
|
||||
Deferred: Resolved when it has successfully been queued for
|
||||
|
@ -154,7 +154,7 @@ class FederationHandler(BaseHandler):
|
|||
replication = self.replication_layer
|
||||
|
||||
if not state:
|
||||
state, auth_chain = yield replication.get_state_for_context(
|
||||
state, auth_chain = yield replication.get_state_for_room(
|
||||
origin, context=event.room_id, event_id=event.event_id,
|
||||
)
|
||||
|
||||
|
@ -281,7 +281,7 @@ class FederationHandler(BaseHandler):
|
|||
"""
|
||||
pdu = yield self.replication_layer.send_invite(
|
||||
destination=target_host,
|
||||
context=event.room_id,
|
||||
room_id=event.room_id,
|
||||
event_id=event.event_id,
|
||||
pdu=event
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue