mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactoring
This commit is contained in:
@@ -42,7 +42,7 @@ func _internal_updateGroupDiscussionForChannel(network: Network, postbox: Postbo
|
||||
return postbox.transaction { transaction -> (channel: Peer?, group: Peer?) in
|
||||
return (channel: channelId.flatMap(transaction.getPeer), group: groupId.flatMap(transaction.getPeer))
|
||||
}
|
||||
|> mapError { _ in ChannelDiscussionGroupError.generic }
|
||||
|> mapError { _ -> ChannelDiscussionGroupError in }
|
||||
|> mapToSignal { channel, group -> Signal<Bool, ChannelDiscussionGroupError> in
|
||||
let apiChannel = channel.flatMap(apiInputChannel) ?? Api.InputChannel.inputChannelEmpty
|
||||
let apiGroup = group.flatMap(apiInputChannel) ?? Api.InputChannel.inputChannelEmpty
|
||||
|
||||
Reference in New Issue
Block a user