Fix compilation
This commit is contained in:
parent
b1edd88daa
commit
146a7e4b8c
1 changed files with 7 additions and 2 deletions
|
@ -271,8 +271,13 @@ class TelegramHelper private constructor() {
|
|||
fun applyAuthenticationParameter(parameterType: TelegramAuthenticationParameterType, parameterValue: String) {
|
||||
if (!TextUtils.isEmpty(parameterValue)) {
|
||||
when (parameterType) {
|
||||
PHONE_NUMBER -> client!!.send(TdApi.SetAuthenticationPhoneNumber(parameterValue, false, false), AuthorizationRequestHandler())
|
||||
CODE -> client!!.send(TdApi.CheckAuthenticationCode(parameterValue, "", ""), AuthorizationRequestHandler())
|
||||
PHONE_NUMBER -> client!!.send(
|
||||
TdApi.SetAuthenticationPhoneNumber(
|
||||
parameterValue,
|
||||
TdApi.PhoneNumberAuthenticationSettings(false, false, false)
|
||||
), AuthorizationRequestHandler()
|
||||
)
|
||||
CODE -> client!!.send(TdApi.CheckAuthenticationCode(parameterValue), AuthorizationRequestHandler())
|
||||
PASSWORD -> client!!.send(TdApi.CheckAuthenticationPassword(parameterValue), AuthorizationRequestHandler())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue