chat admin list and recent actions shortcuts

This commit is contained in:
kukuruzka 2025-03-21 23:15:00 +02:00
parent 68b357a830
commit 3fb4fcf22c

View File

@ -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 {