0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-14 10:43:50 +01:00

make FederationHandler._clean_room_for_join async

This commit is contained in:
Richard van der Hoff 2020-02-03 16:27:05 +00:00
parent 814cc00cb9
commit 52642860da

View file

@ -2883,17 +2883,17 @@ class FederationHandler(BaseHandler):
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
server to join the room.
Args:
room_id (str)
room_id
"""
if self.config.worker_app:
return self._clean_room_for_join_client(room_id)
await self._clean_room_for_join_client(room_id)
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):
"""Called when a new user has joined the room