mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Update filters
This commit is contained in:
@@ -361,9 +361,14 @@ public func channelMembersController(context: AccountContext, peerId: PeerId) ->
|
||||
addMembersDisposable.set((contactsController.result
|
||||
|> deliverOnMainQueue
|
||||
|> castError(AddChannelMemberError.self)
|
||||
|> mapToSignal { [weak contactsController] contacts -> Signal<Never, AddChannelMemberError> in
|
||||
|> mapToSignal { [weak contactsController] result -> Signal<Never, AddChannelMemberError> in
|
||||
contactsController?.displayProgress = true
|
||||
|
||||
var contacts: [ContactListPeerId] = []
|
||||
if case let .result(peerIdsValue, _) = result {
|
||||
contacts = peerIdsValue
|
||||
}
|
||||
|
||||
let signal = context.peerChannelMemberCategoriesContextsManager.addMembers(account: context.account, peerId: peerId, memberIds: contacts.compactMap({ contact -> PeerId? in
|
||||
switch contact {
|
||||
case let .peer(contactId):
|
||||
|
||||
Reference in New Issue
Block a user