Disable drawing in sign up screen

This commit is contained in:
Ilya Laktyushin
2023-02-21 01:55:59 +04:00
parent 18934cf6e9
commit 6de1267a1d
10 changed files with 26 additions and 22 deletions

View File

@@ -2604,15 +2604,12 @@
}]];
}
+ (TGPhotoEditorTab)defaultTabsForAvatarIntent
+ (TGPhotoEditorTab)defaultTabsForAvatarIntent:(bool)hasStickers
{
static dispatch_once_t onceToken;
static TGPhotoEditorTab avatarTabs = TGPhotoEditorNoneTab;
dispatch_once(&onceToken, ^
{
if (iosMajorVersion() >= 7)
avatarTabs = TGPhotoEditorCropTab | TGPhotoEditorPaintTab | TGPhotoEditorToolsTab;
});
TGPhotoEditorTab avatarTabs = TGPhotoEditorCropTab | TGPhotoEditorToolsTab;
if (hasStickers) {
avatarTabs |= TGPhotoEditorPaintTab;
}
return avatarTabs;
}