mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Initial invite requests implementation
This commit is contained in:
@@ -40,7 +40,7 @@ func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceStat
|
||||
break loop
|
||||
}
|
||||
}
|
||||
case .chatInfo, .requestInProgress, .toastAlert:
|
||||
case .chatInfo, .requestInProgress, .toastAlert, .inviteRequests:
|
||||
selectedContext = context
|
||||
break loop
|
||||
}
|
||||
@@ -119,6 +119,16 @@ func titlePanelForChatPresentationInterfaceState(_ chatPresentationInterfaceStat
|
||||
panel.interfaceInteraction = interfaceInteraction
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user