Minor improvements.

This commit is contained in:
levlam 2023-10-15 01:20:09 +03:00
parent 9fa5c685f6
commit 1c588eda01
8 changed files with 13 additions and 13 deletions

View File

@ -1,6 +1,6 @@
include(CMakeFindDependencyMacro)
#TODO: write all external dependencies
include("${CMAKE_CURRENT_LIST_DIR}/TdTargets.cmake")
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
if (EXISTS "${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/TdStaticTargets.cmake")
endif()

View File

@ -16,11 +16,6 @@
#include "td/utils/UInt.h"
namespace td {
namespace mtproto_api {
class Object;
} // namespace mtproto_api
namespace mtproto {
class DhCallback;

View File

@ -10,7 +10,6 @@
#include "td/db/SqliteConnectionSafe.h"
#include "td/db/SqliteDb.h"
#include "td/db/SqliteKeyValue.h"
#include "td/db/SqliteStatement.h"
#include "td/actor/actor.h"

View File

@ -32,6 +32,7 @@
#include "td/utils/algorithm.h"
#include "td/utils/base64.h"
#include "td/utils/buffer.h"
#include "td/utils/FlatHashSet.h"
#include "td/utils/HttpUrl.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"

View File

@ -11,9 +11,11 @@
#include "td/telegram/Dependencies.h"
#include "td/telegram/Global.h"
#include "td/telegram/MessagesManager.h"
#include "td/telegram/ServerMessageId.h"
#include "td/telegram/Td.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
namespace td {

View File

@ -46,11 +46,11 @@ void MessageOrigin::store(StorerT &storer) const {
template <class ParserT>
void MessageOrigin::parse(ParserT &parser) {
bool has_sender_user_id = sender_user_id_.is_valid();
bool has_sender_dialog_id = sender_dialog_id_.is_valid();
bool has_message_id = message_id_.is_valid();
bool has_author_signature = !author_signature_.empty();
bool has_sender_name = !sender_name_.empty();
bool has_sender_user_id;
bool has_sender_dialog_id;
bool has_message_id;
bool has_author_signature;
bool has_sender_name;
BEGIN_PARSE_FLAGS();
PARSE_FLAG(has_sender_user_id);
PARSE_FLAG(has_sender_dialog_id);

View File

@ -45,7 +45,6 @@
#include "td/telegram/MessageThreadInfo.h"
#include "td/telegram/MessageTtl.h"
#include "td/telegram/MessageViewer.h"
#include "td/telegram/net/DcId.h"
#include "td/telegram/net/NetQuery.h"
#include "td/telegram/Notification.h"
#include "td/telegram/NotificationGroupFromDatabase.h"

View File

@ -18,9 +18,13 @@
#include "td/utils/algorithm.h"
#include "td/utils/buffer.h"
#include "td/utils/logging.h"
#include "td/utils/misc.h"
#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h"
#include <limits>
namespace td {
static td_api::object_ptr<td_api::dateRange> convert_date_range(