From e70d6867d92ea12ebbcb1ab11c6189de55356447 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Tue, 29 Nov 2022 00:20:35 +0400 Subject: [PATCH] Various fixes --- submodules/PeerInfoUI/Sources/ChannelAdminsController.swift | 2 +- submodules/TelegramUI/Sources/ReplyAccessoryPanelNode.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/submodules/PeerInfoUI/Sources/ChannelAdminsController.swift b/submodules/PeerInfoUI/Sources/ChannelAdminsController.swift index 8e02cb0aa3..1e05478f0f 100644 --- a/submodules/PeerInfoUI/Sources/ChannelAdminsController.swift +++ b/submodules/PeerInfoUI/Sources/ChannelAdminsController.swift @@ -351,7 +351,7 @@ private func channelAdminsControllerEntries(presentationData: PresentationData, } entries.append(.recentActions(presentationData.theme, presentationData.strings.Group_Info_AdminLog)) - if isGroup && peer.hasPermission(.deleteAllMessages) && antiSpamAvailable { + if isGroup && peer.hasPermission(.deleteAllMessages) && (antiSpamAvailable || antiSpamEnabled) { entries.append(.antiSpam(presentationData.theme, presentationData.strings.Group_Management_AntiSpam, antiSpamEnabled)) entries.append(.antiSpamInfo(presentationData.theme, presentationData.strings.Group_Management_AntiSpamInfo)) } diff --git a/submodules/TelegramUI/Sources/ReplyAccessoryPanelNode.swift b/submodules/TelegramUI/Sources/ReplyAccessoryPanelNode.swift index 1590136365..ee26fb232c 100644 --- a/submodules/TelegramUI/Sources/ReplyAccessoryPanelNode.swift +++ b/submodules/TelegramUI/Sources/ReplyAccessoryPanelNode.swift @@ -302,7 +302,7 @@ final class ReplyAccessoryPanelNode: AccessoryPanelNode { self.validLayout = (size, inset, interfaceState) let bounds = CGRect(origin: CGPoint(), size: CGSize(width: size.width, height: 45.0)) - let leftInset: CGFloat = 55.0 + let leftInset: CGFloat = 55.0 + inset let textLineInset: CGFloat = 10.0 let rightInset: CGFloat = 55.0 let textRightInset: CGFloat = 20.0