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,
using dependencies: Dependencies
) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestMicrophonePermissionIfNeeded(
presentingViewController: presentingViewController,
using: dependencies,
onAuthorized: { _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestCameraPermissionIfNeeded(
presentingViewController: presentingViewController,
using: dependencies,
onAuthorized: { _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.7) {
requestLocalNetworkPermissionIfNeeded(using: dependencies)
}
}

Loading…
Cancel
Save