From de2aeae041fc34415c2cda78fbd48b5299320411 Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Fri, 1 Dec 2023 09:51:39 -0500 Subject: [PATCH] beeper: Don't waste time kicking appservice users when purging rooms --- synapse/handlers/room.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py index 2d55ad8c241f..733285ab98a2 100644 --- a/synapse/handlers/room.py +++ b/synapse/handlers/room.py @@ -1964,6 +1964,11 @@ async def shutdown_room( if not self.hs.is_mine_id(user_id): continue + # BEEPER HACK: Remove after we've cleaned up synapse bridges + if user_id.startswith("@_"): + logger.info("Skipping kicking %r from %r because it's a appservice user...", user_id, room_id) + continue + logger.info("Kicking %r from %r...", user_id, room_id) try: