mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
make FederationHandler._clean_room_for_join async
This commit is contained in:
parent
814cc00cb9
commit
52642860da
@ -2883,17 +2883,17 @@ class FederationHandler(BaseHandler):
|
|||||||
|
|
||||||
await self.pusher_pool.on_new_notifications(event_stream_id, max_stream_id)
|
await self.pusher_pool.on_new_notifications(event_stream_id, max_stream_id)
|
||||||
|
|
||||||
def _clean_room_for_join(self, room_id):
|
async def _clean_room_for_join(self, room_id: str) -> None:
|
||||||
"""Called to clean up any data in DB for a given room, ready for the
|
"""Called to clean up any data in DB for a given room, ready for the
|
||||||
server to join the room.
|
server to join the room.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
room_id (str)
|
room_id
|
||||||
"""
|
"""
|
||||||
if self.config.worker_app:
|
if self.config.worker_app:
|
||||||
return self._clean_room_for_join_client(room_id)
|
await self._clean_room_for_join_client(room_id)
|
||||||
else:
|
else:
|
||||||
return self.store.clean_room_for_join(room_id)
|
await self.store.clean_room_for_join(room_id)
|
||||||
|
|
||||||
def user_joined_room(self, user, room_id):
|
def user_joined_room(self, user, room_id):
|
||||||
"""Called when a new user has joined the room
|
"""Called when a new user has joined the room
|
||||||
|
Loading…
Reference in New Issue
Block a user