mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-19 12:10:55 +00:00
no message
This commit is contained in:
parent
211d9d0aad
commit
113d6edab4
@ -175,9 +175,6 @@ public func authorizeWithCode(account: UnauthorizedAccount, code: String) -> Sig
|
||||
let user = TelegramUser(user: user)
|
||||
let state = AuthorizedAccountState(masterDatacenterId: account.masterDatacenterId, peerId: user.id, state: nil)
|
||||
modifier.setState(state)
|
||||
updatePeers(modifier: modifier, peers: [user], update: { current, peer -> Peer? in
|
||||
return peer
|
||||
})
|
||||
}
|
||||
}
|
||||
} |> mapError { _ -> AuthorizationCodeVerificationError in
|
||||
@ -221,9 +218,6 @@ public func authorizeWithPassword(account: UnauthorizedAccount, password: String
|
||||
let user = TelegramUser(user: user)
|
||||
let state = AuthorizedAccountState(masterDatacenterId: account.masterDatacenterId, peerId: user.id, state: nil)
|
||||
modifier.setState(state)
|
||||
updatePeers(modifier: modifier, peers: [user], update: { current, peer -> Peer? in
|
||||
return peer
|
||||
})
|
||||
}
|
||||
}
|
||||
|> mapError { _ -> AuthorizationPasswordVerificationError in
|
||||
|
Loading…
x
Reference in New Issue
Block a user