mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-11-30 03:44:18 +00:00
- remove debug code [skip ci]
This commit is contained in:
parent
7ab49435b7
commit
29ccc363e9
@ -28,9 +28,6 @@ public enum ExternalJoiningChatState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public func joinChatInteractively(with hash: String, account: Account) -> Signal <PeerId?, JoinLinkError> {
|
public func joinChatInteractively(with hash: String, account: Account) -> Signal <PeerId?, JoinLinkError> {
|
||||||
#if DEBUG
|
|
||||||
return .fail(.tooMuchJoined)
|
|
||||||
#endif
|
|
||||||
return account.network.request(Api.functions.messages.importChatInvite(hash: hash))
|
return account.network.request(Api.functions.messages.importChatInvite(hash: hash))
|
||||||
|> mapError { error -> JoinLinkError in
|
|> mapError { error -> JoinLinkError in
|
||||||
if error.errorDescription == "CHANNELS_TOO_MUCH" {
|
if error.errorDescription == "CHANNELS_TOO_MUCH" {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user