mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 14:38:45 +03:00
Do not propose bootsrap for SSO accounts
Because we do not support yet confirming account credentials using SSO
This commit is contained in:
parent
0ac6a26b6e
commit
35962c3cb5
1 changed files with 13 additions and 7 deletions
|
@ -167,13 +167,19 @@ class HomeActivity : VectorBaseActivity(), ToolbarConfigurable {
|
||||||
val crossSigningEnabledOnAccount = myCrossSigningKeys != null
|
val crossSigningEnabledOnAccount = myCrossSigningKeys != null
|
||||||
|
|
||||||
if (!crossSigningEnabledOnAccount && !sharedActionViewModel.isAccountCreation) {
|
if (!crossSigningEnabledOnAccount && !sharedActionViewModel.isAccountCreation) {
|
||||||
// We need to ask
|
// Do not propose for SSO accounts, because we do not support yet confirming account credentials using SSO
|
||||||
promptSecurityEvent(
|
if (session.getHomeServerCapabilities().canChangePassword) {
|
||||||
session,
|
// We need to ask
|
||||||
R.string.upgrade_security,
|
promptSecurityEvent(
|
||||||
R.string.security_prompt_text
|
session,
|
||||||
) {
|
R.string.upgrade_security,
|
||||||
it.navigator.upgradeSessionSecurity(it)
|
R.string.security_prompt_text
|
||||||
|
) {
|
||||||
|
it.navigator.upgradeSessionSecurity(it)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
// Do not do it again
|
||||||
|
sharedActionViewModel.hasDisplayedCompleteSecurityPrompt = true
|
||||||
}
|
}
|
||||||
} else if (myCrossSigningKeys?.isTrusted() == false) {
|
} else if (myCrossSigningKeys?.isTrusted() == false) {
|
||||||
// We need to ask
|
// We need to ask
|
||||||
|
|
Loading…
Reference in a new issue