Let users enter their full Matrix user ID on the account provider screen

This commit is contained in:
Jenna Vassar
2026-08-19 11:49:43 -07:00
parent feef42db5a
commit 2182840a71
3 changed files with 93 additions and 2 deletions
@@ -70,10 +70,15 @@ class FakeMatrixAuthenticationService(
return importCreatedSessionLambda(externalSession)
}
/** The login hint passed to the most recent [getOAuthUrl] call. */
var getOAuthUrlLoginHint: String? = null
private set
override suspend fun getOAuthUrl(
prompt: OAuthPrompt,
loginHint: String?,
): Result<OAuthDetails> = simulateLongTask {
getOAuthUrlLoginHint = loginHint
oAuthError?.let { Result.failure(it) } ?: Result.success(AN_OAUTH_DATA)
}