From de7c2c6a68b6c03ead218efaae85723149090157 Mon Sep 17 00:00:00 2001 From: Astra Logical Date: Thu, 23 Jul 2026 14:01:15 -0400 Subject: [PATCH] Properly structure pickle data --- matrix_keycloak_bot.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/matrix_keycloak_bot.py b/matrix_keycloak_bot.py index 878ff95..6527e90 100644 --- a/matrix_keycloak_bot.py +++ b/matrix_keycloak_bot.py @@ -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):