mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Various fixes
This commit is contained in:
parent
02a2c2d359
commit
840c80546f
@ -260,6 +260,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
controller.updateCameraState({ $0.updatedRecording(pressing ? .holding : .handsFree).updatedDuration(initialDuration) }, transition: .spring(duration: 0.4))
|
||||
|
||||
controller.node.withReadyCamera(isFirstTime: !controller.node.cameraIsActive) {
|
||||
Queue.mainQueue().after(0.15) {
|
||||
self.resultDisposable.set((camera.startRecording()
|
||||
|> deliverOnMainQueue).start(next: { [weak self] recordingData in
|
||||
let duration = initialDuration + recordingData.duration
|
||||
@ -278,6 +279,7 @@ private final class VideoMessageCameraScreenComponent: CombinedComponent {
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
if initialDuration > 0.0 {
|
||||
controller.onResume()
|
||||
|
Loading…
x
Reference in New Issue
Block a user