mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
chat admin list and recent actions shortcuts
This commit is contained in:
parent
68b357a830
commit
3fb4fcf22c
@ -6915,6 +6915,23 @@ final class PeerInfoScreenNode: ViewControllerTracingNode, PeerInfoScreenNodePro
|
||||
}
|
||||
})
|
||||
})))
|
||||
|
||||
// MARK: Swiftgram
|
||||
} else {
|
||||
items.append(.action(ContextMenuActionItem(text: presentationData.strings.Group_Info_AdminLog, icon: { theme in
|
||||
generateTintedImage(image: UIImage(bundleImageName: "Peer Info/RefProgram/IntroListEye"), color: theme.contextMenu.primaryColor)
|
||||
}, action: { [weak self] c, f in
|
||||
f(.dismissWithoutContent)
|
||||
self?.openRecentActions()
|
||||
})))
|
||||
}
|
||||
if case .group = channel.info {
|
||||
items.append(.action(ContextMenuActionItem(text: presentationData.strings.GroupInfo_Administrators, icon: { theme in
|
||||
generateTintedImage(image: UIImage(bundleImageName: "Chat List/ProxyShieldIcon"), color: theme.contextMenu.primaryColor)
|
||||
}, action: { [weak self] c, f in
|
||||
f(.dismissWithoutContent)
|
||||
self?.openParticipantsSection(section: .admins)
|
||||
})))
|
||||
}
|
||||
|
||||
if canSetupAutoremoveTimeout {
|
||||
|
Loading…
x
Reference in New Issue
Block a user