|
|
@ -178,9 +178,9 @@ import LocalAuthentication
|
|
|
|
// Success and cancel can be differentiated by consulting
|
|
|
|
// Success and cancel can be differentiated by consulting
|
|
|
|
// isScreenLockEnabled.
|
|
|
|
// isScreenLockEnabled.
|
|
|
|
private func tryToVerifyLocalAuthentication(defaultReason: String,
|
|
|
|
private func tryToVerifyLocalAuthentication(defaultReason: String,
|
|
|
|
touchIdReason: String,
|
|
|
|
touchIdReason: String,
|
|
|
|
faceIdReason: String,
|
|
|
|
faceIdReason: String,
|
|
|
|
completion completionParam: @escaping ((OWSScreenLockOutcome) -> Void)) {
|
|
|
|
completion completionParam: @escaping ((OWSScreenLockOutcome) -> Void)) {
|
|
|
|
|
|
|
|
|
|
|
|
// Ensure completion is always called on the main thread.
|
|
|
|
// Ensure completion is always called on the main thread.
|
|
|
|
let completion = { (outcome: OWSScreenLockOutcome) in
|
|
|
|
let completion = { (outcome: OWSScreenLockOutcome) in
|
|
|
|