Various fixes

This commit is contained in:
Ilya Laktyushin
2026-03-06 10:48:10 +04:00
parent b2d33d6a57
commit d5ccfe2812
2 changed files with 2 additions and 2 deletions

View File

@@ -258,7 +258,7 @@ public final class ChatChannelSubscriberInputPanelNode: ChatInputPanelNode {
Queue.mainQueue().after(0.5) {
if let presentationInterfaceState = self.presentationInterfaceState, let peer = presentationInterfaceState.renderedPeer?.peer {
var canEditRank = false
if let channel = peer as? TelegramChannel, channel.hasPermission(.editRank) {
if let channel = peer as? TelegramChannel, case .group = channel.info, channel.hasPermission(.editRank) {
canEditRank = true
} else if let group = peer as? TelegramGroup, !group.hasBannedPermission(.banEditRank) {
canEditRank = true