Various fixes

This commit is contained in:
Ilya Laktyushin
2022-06-08 00:33:01 +04:00
parent 3bacb78f08
commit c5b8b6392d
2 changed files with 6 additions and 5 deletions

View File

@@ -3090,7 +3090,8 @@ final class PeerInfoHeaderNode: ASDisplayNode {
if !self.backgroundNode.frame.contains(point) {
return nil
}
if self.currentCredibilityIcon == .premium {
if self.currentCredibilityIcon == .premium && !(self.state?.isEditing ?? false) {
let iconFrame = self.titleCredibilityIconNode.view.convert(self.titleCredibilityIconNode.bounds, to: self.view)
let expandedIconFrame = self.titleExpandedCredibilityIconNode.view.convert(self.titleExpandedCredibilityIconNode.bounds, to: self.view)
if expandedIconFrame.contains(point) && self.isAvatarExpanded {