Put nio encryption files in an encryption subdir
This commit is contained in:
		@@ -48,12 +48,15 @@ class MatrixClient(nio.AsyncClient):
 | 
				
			|||||||
        self.send_locks: DefaultDict[str, asyncio.Lock] = \
 | 
					        self.send_locks: DefaultDict[str, asyncio.Lock] = \
 | 
				
			||||||
                DefaultDict(asyncio.Lock)  # {room_id: 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
 | 
					        # TODO: pass a ClientConfig with a pickle key
 | 
				
			||||||
        super().__init__(
 | 
					        super().__init__(
 | 
				
			||||||
            homeserver = homeserver,
 | 
					            homeserver = homeserver,
 | 
				
			||||||
            user       = user,
 | 
					            user       = user,
 | 
				
			||||||
            device_id  = device_id,
 | 
					            device_id  = device_id,
 | 
				
			||||||
            store_path = self.backend.app.appdirs.user_data_dir,
 | 
					            store_path = store,
 | 
				
			||||||
        )
 | 
					        )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.connect_callbacks()
 | 
					        self.connect_callbacks()
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user