mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Display relevant messages when editing rights and permissions is not possible
This commit is contained in:
@@ -743,7 +743,7 @@ final class ChannelMembersSearchContainerNode: SearchDisplayControllerContentNod
|
||||
case let .member(_, _, _, banInfo, _):
|
||||
if let banInfo = banInfo {
|
||||
var exceptionsString = ""
|
||||
for rights in allGroupPermissionList {
|
||||
for (rights, _) in allGroupPermissionList {
|
||||
if banInfo.rights.flags.contains(rights) {
|
||||
if !exceptionsString.isEmpty {
|
||||
exceptionsString.append(", ")
|
||||
@@ -1023,7 +1023,7 @@ final class ChannelMembersSearchContainerNode: SearchDisplayControllerContentNod
|
||||
case let .member(_, _, _, banInfo, _):
|
||||
if let banInfo = banInfo {
|
||||
var exceptionsString = ""
|
||||
for rights in allGroupPermissionList {
|
||||
for (rights, _) in allGroupPermissionList {
|
||||
if banInfo.rights.flags.contains(rights) {
|
||||
if !exceptionsString.isEmpty {
|
||||
exceptionsString.append(", ")
|
||||
|
||||
Reference in New Issue
Block a user