mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Various fixes
This commit is contained in:
@@ -559,7 +559,11 @@ private final class CameraContext {
|
||||
guard let mainDeviceContext = self.mainDeviceContext else {
|
||||
return .complete()
|
||||
}
|
||||
mainDeviceContext.device.setTorchMode(self._flashMode)
|
||||
if self.initialConfiguration.isRoundVideo && self.positionValue == .front {
|
||||
|
||||
} else {
|
||||
mainDeviceContext.device.setTorchMode(self._flashMode)
|
||||
}
|
||||
|
||||
let orientation = self.simplePreviewView?.videoPreviewLayer.connection?.videoOrientation ?? .portrait
|
||||
if self.initialConfiguration.isRoundVideo {
|
||||
|
||||
Reference in New Issue
Block a user