From cf314344bc4bcb6ec4951176c6588c31eeeea733 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 30 Apr 2022 20:32:02 +0400 Subject: [PATCH] Allow video message zoom for all cameras --- submodules/LegacyComponents/Sources/TGVideoCameraPipeline.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/submodules/LegacyComponents/Sources/TGVideoCameraPipeline.m b/submodules/LegacyComponents/Sources/TGVideoCameraPipeline.m index 8699234023..b080133a1d 100644 --- a/submodules/LegacyComponents/Sources/TGVideoCameraPipeline.m +++ b/submodules/LegacyComponents/Sources/TGVideoCameraPipeline.m @@ -918,10 +918,7 @@ static CGFloat angleOffsetFromPortraitOrientationToOrientation(AVCaptureVideoOri { if (![device respondsToSelector:@selector(setVideoZoomFactor:)]) return false; - - if (device.position == AVCaptureDevicePositionFront) - return false; - + return true; }