hh
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user