From 880d1aae0c93a1e27f48bcc9e75849a9bb183561 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Thu, 27 Feb 2020 12:41:09 +0200 Subject: [PATCH] Fix compilation for main chats --- .../src/net/osmand/telegram/helpers/TelegramHelper.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt index 47b52397fd..e4d5188a2b 100644 --- a/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt +++ b/OsmAnd-telegram/src/net/osmand/telegram/helpers/TelegramHelper.kt @@ -446,7 +446,7 @@ class TelegramHelper private constructor() { offsetOrder = last.order offsetChatId = last.chatId } - client?.send(TdApi.GetChats(offsetOrder, offsetChatId, CHATS_LIMIT - chatList.size)) { obj -> + client?.send(TdApi.GetChats(TdApi.ChatListMain(), offsetOrder, offsetChatId, CHATS_LIMIT - chatList.size)) { obj -> when (obj.constructor) { TdApi.Error.CONSTRUCTOR -> { val error = obj as TdApi.Error