mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various UI fixes
This commit is contained in:
@@ -18,6 +18,7 @@ final class ChatRecentActionsController: TelegramBaseController {
|
||||
|
||||
private let context: AccountContext
|
||||
private let peer: Peer
|
||||
private let initialAdminPeerId: PeerId?
|
||||
private var presentationData: PresentationData
|
||||
private var presentationDataDisposable: Disposable?
|
||||
|
||||
@@ -26,9 +27,10 @@ final class ChatRecentActionsController: TelegramBaseController {
|
||||
|
||||
private let titleView: ChatRecentActionsTitleView
|
||||
|
||||
init(context: AccountContext, peer: Peer) {
|
||||
init(context: AccountContext, peer: Peer, adminPeerId: PeerId?) {
|
||||
self.context = context
|
||||
self.peer = peer
|
||||
self.initialAdminPeerId = adminPeerId
|
||||
|
||||
self.presentationData = context.sharedContext.currentPresentationData.with { $0 }
|
||||
|
||||
@@ -174,6 +176,11 @@ final class ChatRecentActionsController: TelegramBaseController {
|
||||
return self?.navigationController as? NavigationController
|
||||
})
|
||||
|
||||
if let adminPeerId = self.initialAdminPeerId {
|
||||
self.controllerNode.updateFilter(events: .all, adminPeerIds: [adminPeerId])
|
||||
self.updateTitle()
|
||||
}
|
||||
|
||||
self.displayNodeDidLoad()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user