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):