From 96db5e1d03fd98c90ab58ee5bb18296d975edf06 Mon Sep 17 00:00:00 2001 From: Igor Solomennikov Date: Wed, 2 Mar 2022 22:53:46 -0800 Subject: [PATCH] Lint fixes. --- .../Photos/SendMediaNavigationController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift b/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift index 6b75c2dddc..80180e327e 100644 --- a/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift +++ b/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift @@ -282,9 +282,9 @@ extension SendMediaNavigationController: PhotoCaptureViewControllerDelegate { } func photoCaptureViewControllerViewWillAppear(_ photoCaptureViewController: PhotoCaptureViewController) { - if !photoCaptureViewController.isInBatchMode, attachmentCount == 1, case .camera(_) = attachmentDraftCollection.attachmentDrafts.last { + if !photoCaptureViewController.isInBatchMode, attachmentCount == 1, case .camera = attachmentDraftCollection.attachmentDrafts.last { // User is navigating back to the camera screen, indicating they want to discard the previously captured item. - discardDraft() + discardDraft() } }