Refactoring

This commit is contained in:
Ali
2021-09-07 13:09:06 +04:00
parent f0f02dc4b9
commit 1141e09c1b
257 changed files with 1894 additions and 1720 deletions

View File

@@ -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