diff --git a/main.py b/main.py index 47365c2..8fd74c4 100755 --- a/main.py +++ b/main.py @@ -124,15 +124,15 @@ async def main(): time.sleep(1.5) # Log out old devices to keep the session clean - devices = list((await client.devices()).devices) - device_list = [x.id for x in devices] - if device_id in device_list: - device_list.remove(device_id) - x = await client.delete_devices(device_list, { - "type": "m.login.password", - "user": config_data['bot_auth']['username'], - "password": config_data['bot_auth']['password'] - }) + # devices = list((await client.devices()).devices) + # device_list = [x.id for x in devices] + # if device_id in device_list: + # device_list.remove(device_id) + # x = await client.delete_devices(device_list, { + # "type": "m.login.password", + # "user": config_data['bot_auth']['username'], + # "password": config_data['bot_auth']['password'] + # }) await client.sync_forever(timeout=10000, full_state=True) except (ClientConnectionError, ServerDisconnectedError):