Various fixes

This commit is contained in:
Ilya Laktyushin 2023-07-27 14:19:08 +02:00
parent 515548f62d
commit ed35300146
2 changed files with 6 additions and 1 deletions

View File

@ -124,7 +124,7 @@ final class SectionHeaderComponent: Component {
if view.superview == nil {
self.addSubview(view)
}
let actionFrame = CGRect(origin: CGPoint(x: availableSize.width - leftInset - titleSize.width, y: floor((height - titleSize.height) / 2.0)), size: actionSize)
let actionFrame = CGRect(origin: CGPoint(x: availableSize.width - leftInset - actionSize.width, y: floor((height - titleSize.height) / 2.0)), size: actionSize)
view.frame = actionFrame
}
} else if self.action.view?.superview != nil {

View File

@ -2065,6 +2065,11 @@ public class ShareWithPeersScreen: ViewControllerComponentContainer {
if peer.isService {
return false
}
if case let .user(user) = peer {
if user.botInfo != nil {
return false
}
}
if case let .channel(channel) = peer {
if channel.isForum {
return false