Various fixes

This commit is contained in:
Ilya Laktyushin 2022-11-29 00:20:35 +04:00
parent a8a3854950
commit e70d6867d9
2 changed files with 2 additions and 2 deletions

View File

@ -351,7 +351,7 @@ private func channelAdminsControllerEntries(presentationData: PresentationData,
} }
entries.append(.recentActions(presentationData.theme, presentationData.strings.Group_Info_AdminLog)) 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(.antiSpam(presentationData.theme, presentationData.strings.Group_Management_AntiSpam, antiSpamEnabled))
entries.append(.antiSpamInfo(presentationData.theme, presentationData.strings.Group_Management_AntiSpamInfo)) entries.append(.antiSpamInfo(presentationData.theme, presentationData.strings.Group_Management_AntiSpamInfo))
} }

View File

@ -302,7 +302,7 @@ final class ReplyAccessoryPanelNode: AccessoryPanelNode {
self.validLayout = (size, inset, interfaceState) self.validLayout = (size, inset, interfaceState)
let bounds = CGRect(origin: CGPoint(), size: CGSize(width: size.width, height: 45.0)) 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 textLineInset: CGFloat = 10.0
let rightInset: CGFloat = 55.0 let rightInset: CGFloat = 55.0
let textRightInset: CGFloat = 20.0 let textRightInset: CGFloat = 20.0