From 706d8472dda66a6f4f19c5e8dd4450a713c61fc3 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Sat, 18 Mar 2023 13:56:45 -0600 Subject: [PATCH] dont logout other devices --- main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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):