diff --git a/app/main.py b/app/main.py index 5be4e12..d28a1c1 100644 --- a/app/main.py +++ b/app/main.py @@ -978,6 +978,7 @@ async def sync_matrix_space() -> dict: # accept-able from a lingering client notification, which defeats # the one-identity rule. Revoke invites via state-event membership # (kick 403s on invite-state users). + import urllib.parse # local import: only needed on this retire path for room in [MATRIX_SPACE_ID] + ([MATRIX_GENERAL_ROOM] if MATRIX_GENERAL_ROOM else []): enc_room = urllib.parse.quote(room, safe="") if local_mxid in joined: