|
|
|
@ -114,6 +114,7 @@ class DeactivateAccountHandler(BaseHandler): |
|
|
|
|
rooms_for_user = yield self.store.get_rooms_for_user(user_id) |
|
|
|
|
for room_id in rooms_for_user: |
|
|
|
|
logger.info("User parter parting %r from %r", user_id, room_id) |
|
|
|
|
try: |
|
|
|
|
yield self._room_member_handler.update_membership( |
|
|
|
|
create_requester(user), |
|
|
|
|
user, |
|
|
|
@ -121,3 +122,8 @@ class DeactivateAccountHandler(BaseHandler): |
|
|
|
|
"leave", |
|
|
|
|
ratelimit=False, |
|
|
|
|
) |
|
|
|
|
except Exception: |
|
|
|
|
logger.exception( |
|
|
|
|
"Failed to part user %r from room %r: ignoring and continuing", |
|
|
|
|
user_id, room_id, |
|
|
|
|
) |
|
|
|
|