mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Refactoring
This commit is contained in:
@@ -55,7 +55,7 @@ func _internal_requestStartBotInGroup(account: Account, botPeerId: PeerId, group
|
||||
|> mapToSignal { result -> Signal<StartBotInGroupResult, RequestStartBotInGroupError> in
|
||||
account.stateManager.addUpdates(result)
|
||||
if groupPeerId.namespace == Namespaces.Peer.CloudChannel {
|
||||
return fetchChannelParticipant(account: account, peerId: groupPeerId, participantId: botPeerId)
|
||||
return _internal_fetchChannelParticipant(account: account, peerId: groupPeerId, participantId: botPeerId)
|
||||
|> mapError { _ -> RequestStartBotInGroupError in return .generic
|
||||
}
|
||||
|> mapToSignal { participant -> Signal<StartBotInGroupResult, RequestStartBotInGroupError> in
|
||||
|
||||
Reference in New Issue
Block a user