From fb925d28feab2008e8156294e09f2760a0a97584 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Wed, 27 Jan 2021 21:48:28 +0500 Subject: [PATCH] Filter secret chats --- submodules/TelegramUI/Sources/ShareExtensionContext.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/TelegramUI/Sources/ShareExtensionContext.swift b/submodules/TelegramUI/Sources/ShareExtensionContext.swift index f21a6952ae..72b64e46c4 100644 --- a/submodules/TelegramUI/Sources/ShareExtensionContext.swift +++ b/submodules/TelegramUI/Sources/ShareExtensionContext.swift @@ -729,7 +729,7 @@ public class ShareRootControllerImpl { let presentationData = internalContext.sharedContext.currentPresentationData.with { $0 } var attemptSelectionImpl: ((Peer) -> Void)? - let controller = context.sharedContext.makePeerSelectionController(PeerSelectionControllerParams(context: context, filter: [.onlyPrivateChats, .excludeDisabled, .doNotSearchMessages], hasChatListSelector: false, hasContactSelector: true, hasGlobalSearch: false, title: presentationData.strings.ChatImport_Title, attemptSelection: { peer in + let controller = context.sharedContext.makePeerSelectionController(PeerSelectionControllerParams(context: context, filter: [.onlyPrivateChats, .excludeDisabled, .doNotSearchMessages, .excludeSecretChats], hasChatListSelector: false, hasContactSelector: true, hasGlobalSearch: false, title: presentationData.strings.ChatImport_Title, attemptSelection: { peer in attemptSelectionImpl?(peer) }, pretendPresentedInModal: true))