From 360ea4af45089784f9178d853353d2bee71c6520 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 1 Nov 2019 22:54:04 +0400 Subject: [PATCH] Allow camera when in compact layout on iPad --- .../LegacyComponents/TGMediaAvatarMenuMixin.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/submodules/LegacyComponents/LegacyComponents/TGMediaAvatarMenuMixin.m b/submodules/LegacyComponents/LegacyComponents/TGMediaAvatarMenuMixin.m index 48103c1240..b43bcd9353 100644 --- a/submodules/LegacyComponents/LegacyComponents/TGMediaAvatarMenuMixin.m +++ b/submodules/LegacyComponents/LegacyComponents/TGMediaAvatarMenuMixin.m @@ -257,10 +257,7 @@ { if (![[[LegacyComponentsGlobals provider] accessChecker] checkCameraAuthorizationStatusForIntent:TGCameraAccessIntentDefault alertDismissCompletion:nil]) return; - - if ([_context currentlyInSplitView]) - return; - + if ([TGCameraController useLegacyCamera]) { [self _displayLegacyCamera];