mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various improvements
This commit is contained in:
@@ -106,6 +106,17 @@ func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceStat
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if let peer = chatPresentationInterfaceState.renderedPeer?.peer, let _ = peer.verification, chatPresentationInterfaceState.displayVerificationDescription {
|
||||
if let currentPanel = currentPanel as? ChatVerifiedPeerTitlePanelNode {
|
||||
return currentPanel
|
||||
} else if let controllerInteraction = controllerInteraction {
|
||||
let panel = ChatVerifiedPeerTitlePanelNode(context: context, animationCache: controllerInteraction.presentationContext.animationCache, animationRenderer: controllerInteraction.presentationContext.animationRenderer)
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
return panel
|
||||
}
|
||||
}
|
||||
|
||||
if let channel = chatPresentationInterfaceState.renderedPeer?.peer as? TelegramChannel, channel.flags.contains(.isForum) {
|
||||
if let threadData = chatPresentationInterfaceState.threadData {
|
||||
if threadData.isClosed {
|
||||
|
||||
Reference in New Issue
Block a user