mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Ensure secureBackupRequired is enforced
This commit is contained in:
@@ -395,6 +395,7 @@ class SelfVerificationViewModel @AssistedInject constructor(
|
||||
if (state.isThisSessionVerified) {
|
||||
// we are the verified session, so just dismiss?
|
||||
// do we want to prompt confirm??
|
||||
_viewEvents.post(VerificationBottomSheetViewEvents.Dismiss)
|
||||
} else {
|
||||
// cancel the active request and go back?
|
||||
setState {
|
||||
|
@@ -257,12 +257,7 @@ class HomeActivity :
|
||||
HomeActivityViewEvents.PromptToEnableSessionPush -> handlePromptToEnablePush()
|
||||
HomeActivityViewEvents.StartRecoverySetupFlow -> handleStartRecoverySetup()
|
||||
is HomeActivityViewEvents.ForceVerification -> {
|
||||
// TODO
|
||||
// if (it.sendRequest) {
|
||||
navigator.requestSelfSessionVerification(this)
|
||||
// } else {
|
||||
// navigator.waitSessionVerification(this)
|
||||
// }
|
||||
navigator.requestSelfSessionVerification(this)
|
||||
}
|
||||
is HomeActivityViewEvents.OnCrossSignedInvalidated -> handleCrossSigningInvalidated(it)
|
||||
HomeActivityViewEvents.ShowAnalyticsOptIn -> handleShowAnalyticsOptIn()
|
||||
@@ -479,12 +474,7 @@ class HomeActivity :
|
||||
titleRes = R.string.crosssigning_verify_this_session,
|
||||
descRes = R.string.confirm_your_identity,
|
||||
) {
|
||||
// navigator.openSettings(this, SettingsActivityPayload.SecurityPrivacy)
|
||||
// if (event.waitForIncomingRequest) {
|
||||
// //it.navigator.waitSessionVerification(it)
|
||||
// } else {
|
||||
it.navigator.requestSelfSessionVerification(it)
|
||||
// }
|
||||
it.navigator.requestSelfSessionVerification(it)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user