mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Various Improvements
This commit is contained in:
@@ -120,14 +120,16 @@ func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceStat
|
||||
return panel
|
||||
}
|
||||
case let .inviteRequests(peers, count):
|
||||
if let currentPanel = currentPanel as? ChatInviteRequestsTitlePanelNode {
|
||||
currentPanel.update(peers: peers, count: count)
|
||||
return currentPanel
|
||||
} else {
|
||||
let panel = ChatInviteRequestsTitlePanelNode(context: context)
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
panel.update(peers: peers, count: count)
|
||||
return panel
|
||||
if let peerId = chatPresentationInterfaceState.renderedPeer?.peerId {
|
||||
if let currentPanel = currentPanel as? ChatInviteRequestsTitlePanelNode {
|
||||
currentPanel.update(peerId: peerId, peers: peers, count: count)
|
||||
return currentPanel
|
||||
} else {
|
||||
let panel = ChatInviteRequestsTitlePanelNode(context: context)
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
panel.update(peerId: peerId, peers: peers, count: count)
|
||||
return panel
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user