From e55ad91de8dcca0fb8f3260c866ac3d132334af0 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 14 Apr 2023 01:37:10 +0400 Subject: [PATCH] Chat wallpaper fixes --- .../LegacyComponents/Sources/TGPhotoToolsController.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/submodules/LegacyComponents/Sources/TGPhotoToolsController.m b/submodules/LegacyComponents/Sources/TGPhotoToolsController.m index 1dfec01a9e..6956c9ab0f 100644 --- a/submodules/LegacyComponents/Sources/TGPhotoToolsController.m +++ b/submodules/LegacyComponents/Sources/TGPhotoToolsController.m @@ -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();