From 995fea2943d2250532d472915fb960660147a32c Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 5 May 2025 22:30:03 +0200 Subject: [PATCH] Cleanup for release --- .../Sources/ChatChannelSubscriberInputPanelNode.swift | 8 +------- .../Sources/Chat/ChatControllerLoadDisplayNode.swift | 5 +++-- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/submodules/TelegramUI/Components/Chat/ChatChannelSubscriberInputPanelNode/Sources/ChatChannelSubscriberInputPanelNode.swift b/submodules/TelegramUI/Components/Chat/ChatChannelSubscriberInputPanelNode/Sources/ChatChannelSubscriberInputPanelNode.swift index 993fab330b..5caccf8eb1 100644 --- a/submodules/TelegramUI/Components/Chat/ChatChannelSubscriberInputPanelNode/Sources/ChatChannelSubscriberInputPanelNode.swift +++ b/submodules/TelegramUI/Components/Chat/ChatChannelSubscriberInputPanelNode/Sources/ChatChannelSubscriberInputPanelNode.swift @@ -469,13 +469,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode { self.giftButton.isHidden = false self.helpButton.isHidden = true - //TODO:release - self.suggestedPostButton.isHidden = false - self.presentGiftOrSuggestTooltip() - } else if case .broadcast = peer.info { - self.giftButton.isHidden = true - self.helpButton.isHidden = true - self.suggestedPostButton.isHidden = false + self.suggestedPostButton.isHidden = true self.presentGiftOrSuggestTooltip() } else if peer.flags.contains(.isGigagroup), self.action == .muteNotifications || self.action == .unmuteNotifications { self.giftButton.isHidden = true diff --git a/submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift b/submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift index 3ca76e4c6f..010ccc7f6e 100644 --- a/submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift +++ b/submodules/TelegramUI/Sources/Chat/ChatControllerLoadDisplayNode.swift @@ -4131,7 +4131,8 @@ extension ChatControllerImpl { strongSelf.present(UndoOverlayController(presentationData: strongSelf.presentationData, content: .info(title: nil, text: strongSelf.presentationData.strings.Conversation_GigagroupDescription, timeout: nil, customUndoText: nil), elevatedLayout: false, action: { _ in return true }), in: .current) } }, openSuggestPost: { [weak self] in - guard let self else { + let _ = self + /*guard let self else { return } guard let peerId = self.chatLocation.peerId else { @@ -4152,7 +4153,7 @@ extension ChatControllerImpl { ) chatController.navigationPresentation = .modal - self.push(chatController) + self.push(chatController)*/ }, editMessageMedia: { [weak self] messageId, draw in if let strongSelf = self { strongSelf.controllerInteraction?.editMessageMedia(messageId, draw)