From 146a7e4b8c1c532f8fc3b2cc49cc33b0619b863b Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 19 Sep 2019 16:41:23 +0300 Subject: [PATCH] Fix compilation --- .../src/net/osmand/telegram/helpers/TelegramHelper.kt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 59e222e375..634621e268 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -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()) } }