Permission and search UI improvements

This commit is contained in:
Ali
2023-01-17 23:02:57 +04:00
parent e67f7316ef
commit 6d8c7243e5
45 changed files with 1585 additions and 303 deletions

View File

@@ -33,7 +33,7 @@
@implementation TGAttachmentCameraView
- (instancetype)initForSelfPortrait:(bool)selfPortrait
- (instancetype)initForSelfPortrait:(bool)selfPortrait videoModeByDefault:(bool)videoModeByDefault
{
self = [super initWithFrame:CGRectZero];
if (self != nil)
@@ -46,7 +46,7 @@
PGCamera *camera = nil;
if ([PGCamera cameraAvailable])
{
camera = [[PGCamera alloc] initWithMode:PGCameraModePhoto position:selfPortrait ? PGCameraPositionFront : PGCameraPositionUndefined];
camera = [[PGCamera alloc] initWithMode:videoModeByDefault ? PGCameraModeVideo : PGCameraModePhoto position:selfPortrait ? PGCameraPositionFront : PGCameraPositionUndefined];
}
_camera = camera;