Various fixes.
GitOrigin-RevId: 52699dbd5280b63c6bb32da44ea5bfa3157a7922
This commit is contained in:
parent
f948956bf7
commit
b3bae546ec
@ -14,7 +14,6 @@
|
|||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
@ -94,7 +94,6 @@ class TdExample {
|
|||||||
} else if (action == "me") {
|
} else if (action == "me") {
|
||||||
send_query(td_api::make_object<td_api::getMe>(),
|
send_query(td_api::make_object<td_api::getMe>(),
|
||||||
[this](Object object) { std::cerr << to_string(object) << std::endl; });
|
[this](Object object) { std::cerr << to_string(object) << std::endl; });
|
||||||
|
|
||||||
} else if (action == "l") {
|
} else if (action == "l") {
|
||||||
std::cerr << "Logging out..." << std::endl;
|
std::cerr << "Logging out..." << std::endl;
|
||||||
send_query(td_api::make_object<td_api::logOut>(), {});
|
send_query(td_api::make_object<td_api::logOut>(), {});
|
||||||
|
@ -50,7 +50,6 @@ std::string TD_TL_writer_h::gen_output_begin() const {
|
|||||||
"#include \"td/tl/TlObject.h\"\n\n" +
|
"#include \"td/tl/TlObject.h\"\n\n" +
|
||||||
ext_include_str +
|
ext_include_str +
|
||||||
"#include <cstdint>\n"
|
"#include <cstdint>\n"
|
||||||
"#include <memory>\n"
|
|
||||||
"#include <utility>\n"
|
"#include <utility>\n"
|
||||||
"#include <vector>\n\n"
|
"#include <vector>\n\n"
|
||||||
"namespace td {\n" +
|
"namespace td {\n" +
|
||||||
|
@ -66,7 +66,6 @@ std::string TD_TL_writer_jni_h::gen_output_begin() const {
|
|||||||
return "#pragma once\n\n"
|
return "#pragma once\n\n"
|
||||||
"#include \"td/tl/TlObject.h\"\n\n"
|
"#include \"td/tl/TlObject.h\"\n\n"
|
||||||
"#include <cstdint>\n"
|
"#include <cstdint>\n"
|
||||||
"#include <memory>\n"
|
|
||||||
"#include <utility>\n"
|
"#include <utility>\n"
|
||||||
"#include <vector>\n\n"
|
"#include <vector>\n\n"
|
||||||
"#include <jni.h>\n\n" +
|
"#include <jni.h>\n\n" +
|
||||||
|
@ -26328,7 +26328,7 @@ MessagesManager::Message *MessagesManager::continue_send_message(DialogId dialog
|
|||||||
|
|
||||||
auto can_send_status = can_send_message(dialog_id);
|
auto can_send_status = can_send_message(dialog_id);
|
||||||
if (can_send_status.is_ok() && result_message->send_date < now - MAX_RESEND_DELAY) {
|
if (can_send_status.is_ok() && result_message->send_date < now - MAX_RESEND_DELAY) {
|
||||||
can_send_status = Status::Error(400, "Message is too old to be resent automatically");
|
can_send_status = Status::Error(400, "Message is too old to be re-sent automatically");
|
||||||
}
|
}
|
||||||
if (can_send_status.is_error()) {
|
if (can_send_status.is_error()) {
|
||||||
LOG(INFO) << "Can't resend a message to " << dialog_id << ": " << can_send_status.error();
|
LOG(INFO) << "Can't resend a message to " << dialog_id << ": " << can_send_status.error();
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Random.h"
|
#include "td/utils/Random.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
#include "td/telegram/td_api.h"
|
#include "td/telegram/td_api.h"
|
||||||
#include "td/telegram/telegram_api.h" // TODO: this file is already included. Why?
|
#include "td/telegram/telegram_api.h" // TODO: this file is already included. Why?
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
#include "td/utils/optional.h"
|
#include "td/utils/optional.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
|
||||||
class GetSecureValue : public NetQueryCallback {
|
class GetSecureValue : public NetQueryCallback {
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <memory>
|
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -51,7 +51,6 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
#include <memory>
|
|
||||||
#include <queue>
|
#include <queue>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#include <memory>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/Container.h"
|
#include "td/utils/Container.h"
|
||||||
#include "td/utils/Enumerator.h"
|
#include "td/utils/Enumerator.h"
|
||||||
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include "td/net/NetStats.h"
|
#include "td/net/NetStats.h"
|
||||||
|
|
||||||
#include "td/utils/FloodControlStrict.h"
|
#include "td/utils/FloodControlStrict.h"
|
||||||
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/port/IPAddress.h"
|
#include "td/utils/port/IPAddress.h"
|
||||||
#include "td/utils/port/SocketFd.h"
|
#include "td/utils/port/SocketFd.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include "td/telegram/Client.h"
|
#include "td/telegram/Client.h"
|
||||||
#include "td/telegram/Log.h"
|
#include "td/telegram/Log.h"
|
||||||
|
|
||||||
#include "td/telegram/td_api.h"
|
|
||||||
#include "td/telegram/td_tdc_api_inner.h"
|
#include "td/telegram/td_tdc_api_inner.h"
|
||||||
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "td/utils/int_types.h"
|
#include "td/utils/int_types.h"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "td/utils/misc.h"
|
#include "td/utils/misc.h"
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <memory>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
#include "td/actor/actor.h"
|
#include "td/actor/actor.h"
|
||||||
|
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
class Worker : public td::Actor {
|
class Worker : public td::Actor {
|
||||||
public:
|
public:
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/port/thread.h"
|
#include "td/utils/port/thread.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
#if TD_PORT_WINDOWS
|
#if TD_PORT_WINDOWS
|
||||||
#include "td/utils/port/detail/Iocp.h"
|
#include "td/utils/port/detail/Iocp.h"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
#include "td/utils/port/detail/PollableFd.h"
|
#include "td/utils/port/detail/PollableFd.h"
|
||||||
#include "td/utils/port/PollFlags.h"
|
#include "td/utils/port/PollFlags.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
|
@ -20,6 +20,7 @@
|
|||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/Status.h"
|
#include "td/utils/Status.h"
|
||||||
#include "td/utils/StringBuilder.h"
|
#include "td/utils/StringBuilder.h"
|
||||||
|
#include "td/utils/Time.h"
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
#include "td/utils/Random.h"
|
#include "td/utils/Random.h"
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <memory>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <tuple>
|
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ char disable_linker_warning_about_empty_file_event_fd_linux_cpp TD_UNUSED;
|
|||||||
#include "td/utils/misc.h"
|
#include "td/utils/misc.h"
|
||||||
#include "td/utils/port/detail/NativeFd.h"
|
#include "td/utils/port/detail/NativeFd.h"
|
||||||
#include "td/utils/port/PollFlags.h"
|
#include "td/utils/port/PollFlags.h"
|
||||||
|
#include "td/utils/ScopeGuard.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
|
|
||||||
#include <poll.h>
|
#include <poll.h>
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <clocale>
|
#include <clocale>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
#include <utility>
|
||||||
|
|
||||||
using namespace td;
|
using namespace td;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user