From e2f8f225aff1c57a9e7e6757a5b9c488fbe9e0bf Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 25 Nov 2021 17:18:17 +0400 Subject: [PATCH] Add explanation text in recent search clear alert --- Telegram/Telegram-iOS/en.lproj/Localizable.strings | 2 ++ submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift | 1 + 2 files changed, 3 insertions(+) diff --git a/Telegram/Telegram-iOS/en.lproj/Localizable.strings b/Telegram/Telegram-iOS/en.lproj/Localizable.strings index 08161d33d5..016f02609a 100644 --- a/Telegram/Telegram-iOS/en.lproj/Localizable.strings +++ b/Telegram/Telegram-iOS/en.lproj/Localizable.strings @@ -7092,3 +7092,5 @@ Sorry for the inconvenience."; "AuthSessions.AddDevice.ScanInstallInfo" = "Go to [getdesktop.telegram.org](desktop) or [web.telegram.org](web) to get the QR code"; "Channel.AdminLog.MessageSent" = "%@ sent message:"; + +"ChatList.ClearSearchHistory" = "Are you sure you want to clear your search history?"; diff --git a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift index 70e638cf20..b66f3235ef 100644 --- a/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift +++ b/submodules/ChatListUI/Sources/ChatListSearchContainerNode.swift @@ -185,6 +185,7 @@ public final class ChatListSearchContainerNode: SearchDisplayControllerContentNo let presentationData = strongSelf.presentationData let actionSheet = ActionSheetController(presentationData: presentationData) actionSheet.setItemGroups([ActionSheetItemGroup(items: [ + ActionSheetTextItem(title: presentationData.strings.ChatList_ClearSearchHistory), ActionSheetButtonItem(title: presentationData.strings.WebSearch_RecentSectionClear, color: .destructive, action: { [weak self, weak actionSheet] in actionSheet?.dismissAnimated()