Various fixes

This commit is contained in:
Ilya Laktyushin
2024-02-12 17:23:30 -04:00
parent 337ae154c9
commit 59c65198de
11 changed files with 128 additions and 63 deletions

View File

@@ -272,6 +272,10 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
controller.onStop()
}
}
}, error: { [weak self] _ in
if let self, let controller = self.getController() {
controller.completion(nil, nil, nil)
}
}))
}
@@ -1686,7 +1690,7 @@ public class VideoMessageCameraScreen: ViewController {
self.audioSessionDisposable = self.context.sharedContext.mediaManager.audioSession.push(audioSessionType: audioSessionType, activate: { [weak self] _ in
if let self {
Queue.mainQueue().async {
Queue.mainQueue().after(0.05) {
self.node.setupCamera()
}
}