mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix record permission callback thread
This commit is contained in:
parent
e539f81f19
commit
a2b69da52e
@ -282,6 +282,7 @@ public final class DeviceAccess {
|
||||
completion(true)
|
||||
} else {
|
||||
AVAudioSession.sharedInstance().requestRecordPermission({ granted in
|
||||
Queue.mainQueue().async {
|
||||
if granted {
|
||||
completion(true)
|
||||
} else if let presentationData = presentationData {
|
||||
@ -302,6 +303,7 @@ public final class DeviceAccess {
|
||||
displayNotificationFromBackground(text)
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
case let .mediaLibrary(mediaLibrarySubject):
|
||||
|
Loading…
x
Reference in New Issue
Block a user