Properly structure pickle data

This commit is contained in:
Astra Logical 2026-07-23 14:01:15 -04:00
parent e393b0b084
commit de7c2c6a68

View file

@ -47,9 +47,15 @@ log = logging.getLogger("keycloak_bot")
# ------------------------------------------------------------------------------
class PickleCryptoStore(MemoryCryptoStore):
def __init__(self, filepath: str, account_id: str = "bot", pickle_key: str = ""):
super().__init__(account_id=account_id, pickle_key=pickle_key)
self.filepath = filepath
self.account = None # Ensure attribute always exists
self.account = None
self.sessions = {}
self.inbound_group_sessions = {}
self.outbound_group_sessions = {}
self.devices = {}
self.cross_signing_keys = {}
super().__init__(account_id=account_id, pickle_key=pickle_key)
self.load()
def load(self):