From 7c07303cccc2a3927a6ecb787cecf68c296fb992 Mon Sep 17 00:00:00 2001 From: Igor Solomennikov Date: Fri, 4 Mar 2022 18:27:18 -0800 Subject: [PATCH] Resume camera session after taking a video if "batch mode" is enabled. This fixes an issue where camera would freeze and eventually crash after taking a photo. --- .../ViewControllers/Photos/PhotoCaptureViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/Photos/PhotoCaptureViewController.swift b/Signal/src/ViewControllers/Photos/PhotoCaptureViewController.swift index 01f8802e89..cd38e86ebc 100644 --- a/Signal/src/ViewControllers/Photos/PhotoCaptureViewController.swift +++ b/Signal/src/ViewControllers/Photos/PhotoCaptureViewController.swift @@ -987,7 +987,9 @@ extension PhotoCaptureViewController: PhotoCaptureDelegate { updateDoneButtonAppearance() - if !isInBatchMode { + if isInBatchMode { + resumePhotoCapture() + } else { delegate?.photoCaptureViewControllerDidFinish(self) } }