From 924c101befd4748b9e221c5722e1eddbbbdbccff Mon Sep 17 00:00:00 2001 From: Isaac <> Date: Mon, 22 Apr 2024 23:18:42 +0400 Subject: [PATCH] Allow banning users who left the chat --- .../AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift | 4 ---- 1 file changed, 4 deletions(-) diff --git a/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift b/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift index 6091bc95f8..049fd4aa3f 100644 --- a/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift +++ b/submodules/TelegramUI/Components/AdminUserActionsSheet/Sources/AdminUserActionsSheet.swift @@ -616,10 +616,6 @@ private final class AdminUserActionsSheetComponent: Component { canBanEveryone = false continue } - if let banInfo = peer.participant.banInfo, !banInfo.isMember { - canBanEveryone = false - continue - } switch peer.participant { case .creator: