This commit is contained in:
nose
2025-12-13 00:18:30 -08:00
parent 85750247cc
commit 30eb628aa3
18 changed files with 1056 additions and 407 deletions

View File

@@ -15,7 +15,7 @@ class Matrix(FileProvider):
def validate(self) -> bool:
if not self.config:
return False
matrix_conf = self.config.get("storage", {}).get("matrix", {})
matrix_conf = self.config.get("provider", {}).get("matrix", {})
return bool(
matrix_conf.get("homeserver")
and matrix_conf.get("room_id")
@@ -27,7 +27,7 @@ class Matrix(FileProvider):
if not path.exists():
raise FileNotFoundError(f"File not found: {file_path}")
matrix_conf = self.config.get("storage", {}).get("matrix", {})
matrix_conf = self.config.get("provider", {}).get("matrix", {})
homeserver = matrix_conf.get("homeserver")
access_token = matrix_conf.get("access_token")
room_id = matrix_conf.get("room_id")