Properly structure pickle data
This commit is contained in:
parent
e393b0b084
commit
de7c2c6a68
1 changed files with 8 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue