mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-15 13:44:13 -05:00
make FederationHandler.do_remotely_reject_invite async
This commit is contained in:
parent
c3f296af32
commit
4286e429a7
2 changed files with 11 additions and 8 deletions
|
|
@ -984,8 +984,10 @@ class RoomMemberMasterHandler(RoomMemberHandler):
|
|||
"""
|
||||
fed_handler = self.federation_handler
|
||||
try:
|
||||
ret = yield fed_handler.do_remotely_reject_invite(
|
||||
remote_room_hosts, room_id, target.to_string(), content=content,
|
||||
ret = yield defer.ensureDeferred(
|
||||
fed_handler.do_remotely_reject_invite(
|
||||
remote_room_hosts, room_id, target.to_string(), content=content,
|
||||
)
|
||||
)
|
||||
return ret
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue