diff --git a/src/backend/backend.py b/src/backend/backend.py index 2f79e925..d5e3409a 100644 --- a/src/backend/backend.py +++ b/src/backend/backend.py @@ -153,6 +153,7 @@ class Backend: return await asyncio.gather(*( resume(uid, info) for uid, info in (await self.saved_accounts.read()).items() + if info.get("enabled", True) )) diff --git a/src/backend/user_files.py b/src/backend/user_files.py index 760e1606..711e4337 100644 --- a/src/backend/user_files.py +++ b/src/backend/user_files.py @@ -190,6 +190,7 @@ class Accounts(JSONDataFile): "homeserver": client.homeserver, "token": client.access_token, "device_id": client.device_id, + "enabled": True, }, })