From 7e2d79adfcffe026c67d0d581dfc6de70659f744 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Fri, 14 Nov 2025 13:19:34 +0400 Subject: [PATCH] Fix --- .../Sources/ChatScheduleTimeScreen.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/submodules/TelegramUI/Components/ChatScheduleTimeController/Sources/ChatScheduleTimeScreen.swift b/submodules/TelegramUI/Components/ChatScheduleTimeController/Sources/ChatScheduleTimeScreen.swift index 48db72cc9f..4e49cf0c28 100644 --- a/submodules/TelegramUI/Components/ChatScheduleTimeController/Sources/ChatScheduleTimeScreen.swift +++ b/submodules/TelegramUI/Components/ChatScheduleTimeController/Sources/ChatScheduleTimeScreen.swift @@ -629,14 +629,7 @@ private final class ChatScheduleTimeSheetContentComponent: Component { elevatedLayout: false, action: { [weak environment] action in if case .undo = action { - var replaceImpl: ((ViewController) -> Void)? - let controller = component.context.sharedContext.makePremiumDemoController(context: component.context, subject: .colors, forceDark: false, action: { - let controller = component.context.sharedContext.makePremiumIntroController(context: component.context, source: .nameColor, forceDark: false, dismissed: nil) - replaceImpl?(controller) - }, dismissed: nil) - replaceImpl = { [weak controller] c in - controller?.replace(with: c) - } + let controller = component.context.sharedContext.makePremiumIntroController(context: component.context, source: .nameColor, forceDark: false, dismissed: nil) environment?.controller()?.push(controller) } return true