diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 11f150ebe2..9168306e6f 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -162,7 +162,7 @@ class TelegramHelper private constructor() { fun onTelegramChatChanged(chat: TdApi.Chat) fun onTelegramUserChanged(user: TdApi.User) fun onTelegramError(code: Int, message: String) - fun onSendLiveLicationError(code: Int, message: String) + fun onSendLiveLocationError(code: Int, message: String) } interface TelegramIncomingMessagesListener { @@ -404,7 +404,7 @@ class TelegramHelper private constructor() { val error = obj as TdApi.Error if (error.code != IGNORED_ERROR_CODE) { needRefreshActiveLiveLocationMessages = true - listener?.onSendLiveLicationError(error.code, error.message) + listener?.onSendLiveLocationError(error.code, error.message) } } TdApi.Messages.CONSTRUCTOR -> { @@ -418,7 +418,7 @@ class TelegramHelper private constructor() { } onComplete?.invoke() } - else -> listener?.onSendLiveLicationError(-1, "Receive wrong response from TDLib: $obj") + else -> listener?.onSendLiveLocationError(-1, "Receive wrong response from TDLib: $obj") } requestingActiveLiveLocationMessages = false } @@ -503,7 +503,7 @@ class TelegramHelper private constructor() { val error = obj as TdApi.Error if (error.code != IGNORED_ERROR_CODE) { needRefreshActiveLiveLocationMessages = true - listener?.onSendLiveLicationError(error.code, error.message) + listener?.onSendLiveLocationError(error.code, error.message) } } else -> { @@ -511,7 +511,7 @@ class TelegramHelper private constructor() { when (obj.sendingState?.constructor) { TdApi.MessageSendingStateFailed.CONSTRUCTOR -> { needRefreshActiveLiveLocationMessages = true - listener?.onSendLiveLicationError(-1, "Live location message ${obj.id} failed to send") + listener?.onSendLiveLocationError(-1, "Live location message ${obj.id} failed to send") } } } diff --git a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt index 1d9b420784..9acc857201 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/ui/MainActivity.kt @@ -188,7 +188,7 @@ class MainActivity : AppCompatActivity(), TelegramListener { } } - override fun onSendLiveLicationError(code: Int, message: String) { + override fun onSendLiveLocationError(code: Int, message: String) { log.error("Send live location error: $code - $message") app.isInternetConnectionAvailable(true) }