diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 178c53db..bf7ddff5 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -48,12 +48,15 @@ class MatrixClient(nio.AsyncClient): self.send_locks: DefaultDict[str, asyncio.Lock] = \ DefaultDict(asyncio.Lock) # {room_id: lock} + store = Path(self.backend.app.appdirs.user_data_dir) / "encryption" + store.mkdir(parents=True, exist_ok=True) + # TODO: pass a ClientConfig with a pickle key super().__init__( homeserver = homeserver, user = user, device_id = device_id, - store_path = self.backend.app.appdirs.user_data_dir, + store_path = store, ) self.connect_callbacks()