diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index e9ab857da..c0e71bbd8 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -12959,8 +12959,8 @@ void MessagesManager::on_get_dialogs(FolderId folder_id, vector result) { if (result.is_ok()) { LOG(INFO) << "Continue to load chat list in " << folder_id; - send_closure_later(actor_id, &MessagesManager::load_folder_dialog_list, folder_id, MAX_GET_DIALOGS, false, - Promise()); + send_closure_later(actor_id, &MessagesManager::load_folder_dialog_list, folder_id, int32{MAX_GET_DIALOGS}, + false, Promise()); } })); }