mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Apply patch
This commit is contained in:
parent
4ba9de05fd
commit
bb974d4cc1
@ -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?()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user