mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Apply suggestions from code review
Co-Authored-By: Erik Johnston <erik@matrix.org>
This commit is contained in:
parent
5ef91b96f1
commit
146fec0820
@ -528,7 +528,7 @@ class FederationClient(FederationBase):
|
||||
|
||||
Returns:
|
||||
a dict with members ``origin`` (a string
|
||||
giving the serer the event was sent to, ``state`` (?) and
|
||||
giving the server the event was sent to, ``state`` (?) and
|
||||
``auth_chain``.
|
||||
|
||||
Raises:
|
||||
@ -659,7 +659,9 @@ class FederationClient(FederationBase):
|
||||
# content.
|
||||
return resp[1]
|
||||
|
||||
async def send_invite(self, destination, room_id, event_id, pdu):
|
||||
async def send_invite(
|
||||
self, destination: str, room_id: str, event_id: str, pdu: EventBase,
|
||||
) -> EventBase:
|
||||
room_version = await self.store.get_room_version_id(room_id)
|
||||
|
||||
content = await self._do_send_invite(destination, pdu, room_version)
|
||||
|
Loading…
Reference in New Issue
Block a user