Apply patch

This commit is contained in:
Ali 2020-08-18 20:57:40 +01:00
parent 4ba9de05fd
commit bb974d4cc1

View File

@ -60,7 +60,11 @@ final class InstantVideoController: LegacyController, StandalonePresentableContr
self?.durationValue.set(duration) self?.durationValue.set(duration)
} }
captureController.onDismiss = { [weak self] _, isCancelled in captureController.onDismiss = { [weak self] _, isCancelled in
self?.onDismiss?(isCancelled) guard let strongSelf = self else { return }
if !strongSelf.dismissedVideo {
self?.dismissedVideo = true
self?.onDismiss?(isCancelled)
}
} }
captureController.onStop = { [weak self] in captureController.onStop = { [weak self] in
self?.onStop?() self?.onStop?()