Various improvements

This commit is contained in:
Ilya Laktyushin
2020-06-19 00:33:54 +03:00
parent 03a84fda99
commit df70d5d718
87 changed files with 7865 additions and 6292 deletions

View File

@@ -2806,7 +2806,13 @@ private final class PeerInfoScreenNode: ViewControllerTracingNode, UIScrollViewD
}
self.view.endEditing(true)
controller.push(channelStatsController(context: self.context, peerId: peer.id, cachedPeerData: cachedData))
let statsController: ViewController
if let channel = peer as? TelegramChannel, case .group = channel.info {
statsController = groupStatsController(context: self.context, peerId: peer.id, cachedPeerData: cachedData)
} else {
statsController = channelStatsController(context: self.context, peerId: peer.id, cachedPeerData: cachedData)
}
controller.push(statsController)
}
private func openReport(user: Bool) {