mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-04 13:38:21 +00:00
Various fixes
This commit is contained in:
parent
515548f62d
commit
ed35300146
@ -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 {
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user