Chat wallpaper fixes

This commit is contained in:
Ilya Laktyushin 2023-04-14 01:37:10 +04:00
parent c339bc8701
commit e55ad91de8

View File

@ -499,7 +499,13 @@ const CGFloat TGPhotoEditorToolsLandscapePanelSize = TGPhotoEditorToolsPanelSize
[TGPhotoEditorAnimation performBlock:^(__unused bool allFinished)
{
[snapshotView removeFromSuperview];
if (self.intent == TGPhotoEditorControllerWallpaperIntent) {
TGDispatchAfter(0.3, dispatch_get_main_queue(), ^{
[snapshotView removeFromSuperview];
});
} else {
[snapshotView removeFromSuperview];
}
if (completion != nil)
completion();