Fix compilation for main chats
This commit is contained in:
parent
01288ff088
commit
880d1aae0c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue