Fix compilation for main chats

This commit is contained in:
Vitaliy 2020-02-27 12:41:09 +02:00
parent 01288ff088
commit 880d1aae0c

View file

@ -446,7 +446,7 @@ class TelegramHelper private constructor() {
offsetOrder = last.order offsetOrder = last.order
offsetChatId = last.chatId 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) { when (obj.constructor) {
TdApi.Error.CONSTRUCTOR -> { TdApi.Error.CONSTRUCTOR -> {
val error = obj as TdApi.Error val error = obj as TdApi.Error