This commit is contained in:
2026-01-26 02:29:56 -08:00
parent 0c336ef1d1
commit 334841dcfa
5 changed files with 510 additions and 65 deletions

View File

@@ -249,12 +249,6 @@ class Matrix(TableProviderMixin, Provider):
"default": "",
"secret": True
},
{
"key": "password",
"label": "Password (fallback)",
"default": "",
"secret": True
}
]
def __init__(self, config: Optional[Dict[str, Any]] = None):
@@ -270,12 +264,10 @@ class Matrix(TableProviderMixin, Provider):
)
homeserver = matrix_conf.get("homeserver")
access_token = matrix_conf.get("access_token")
password = matrix_conf.get("password")
# Not configured: keep instance but mark invalid via validate().
# Note: `room_id` is intentionally NOT required, since the CLI can prompt
# the user to select a room dynamically.
if not (homeserver and (access_token or password)):
if not (homeserver and access_token):
self._init_ok = None
self._init_reason = None
return
@@ -305,7 +297,7 @@ class Matrix(TableProviderMixin, Provider):
{})
return bool(
matrix_conf.get("homeserver")
and (matrix_conf.get("access_token") or matrix_conf.get("password"))
and matrix_conf.get("access_token")
)
def search(