From 99c3cc7d9f895884701a673e0bb8e1639d45ed08 Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 24 Jul 2019 20:00:01 -0400 Subject: [PATCH] Put nio encryption files in an encryption subdir --- src/python/matrix_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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()