increase permission chain delay to 0.7s

pull/1061/head
Ryan ZHAO 2 weeks ago
parent fc4b349d36
commit f8711f670f

@ -321,17 +321,17 @@ extension Permissions {
presentingViewController: UIViewController? = nil, presentingViewController: UIViewController? = nil,
using dependencies: Dependencies using dependencies: Dependencies
) { ) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestMicrophonePermissionIfNeeded( requestMicrophonePermissionIfNeeded(
presentingViewController: presentingViewController, presentingViewController: presentingViewController,
using: dependencies, using: dependencies,
onAuthorized: { _ in onAuthorized: { _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestCameraPermissionIfNeeded( requestCameraPermissionIfNeeded(
presentingViewController: presentingViewController, presentingViewController: presentingViewController,
using: dependencies, using: dependencies,
onAuthorized: { _ in onAuthorized: { _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestLocalNetworkPermissionIfNeeded(using: dependencies) requestLocalNetworkPermissionIfNeeded(using: dependencies)
} }
} }

Loading…
Cancel
Save