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 (#111)
This commit is contained in:
parent
6624d13156
commit
5ebff2d222
@ -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 {
|
if canSetupAutoremoveTimeout {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user