mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
ios: disable self-destruct on LA mode change to "system", create new profile with past timestamp (#2416)
This commit is contained in:
committed by
GitHub
parent
63f344bde6
commit
df4e954f8a
@@ -58,7 +58,7 @@ struct LocalAuthView: View {
|
||||
if let displayName = displayName, displayName != "" {
|
||||
profile = Profile(displayName: displayName, fullName: "")
|
||||
}
|
||||
m.currentUser = try apiCreateActiveUser(profile)
|
||||
m.currentUser = try apiCreateActiveUser(profile, pastTimestamp: true)
|
||||
onboardingStageDefault.set(.onboardingComplete)
|
||||
m.onboardingStage = .onboardingComplete
|
||||
try startChat()
|
||||
|
||||
@@ -338,6 +338,7 @@ struct SimplexLockView: View {
|
||||
switch laResult {
|
||||
case .success:
|
||||
_ = kcAppPassword.remove()
|
||||
resetSelfDestruct()
|
||||
laAlert = .laTurnedOnAlert
|
||||
case .failed, .unavailable:
|
||||
currentLAMode = .passcode
|
||||
|
||||
Reference in New Issue
Block a user