Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin
2024-03-16 15:46:17 +04:00
84 changed files with 3324 additions and 4079 deletions

View File

@@ -140,6 +140,18 @@ final class ContactMultiselectionControllerNode: ASDisplayNode {
excludePeers: [],
color: nil
))
} else if chatSelection.disableChannels {
chatListFilter = .filter(id: Int32.max, title: "", emoticon: nil, data: ChatListFilterData(
isShared: false,
hasSharedLinks: false,
categories: [.contacts, .nonContacts, .groups, .bots],
excludeMuted: false,
excludeRead: false,
excludeArchived: false,
includePeers: ChatListFilterIncludePeers(),
excludePeers: [],
color: nil
))
}
placeholder = placeholderValue
@@ -290,7 +302,7 @@ final class ContactMultiselectionControllerNode: ASDisplayNode {
} else {
searchChatList = true
searchGroups = true
searchChannels = true
searchChannels = !chatSelection.disableChannels
}
globalSearch = false
case .premiumGifting, .requestedUsersSelection: