Skip to content

Commit 830da27

Browse files
committed
Minor improvements.
1 parent 57b935f commit 830da27

13 files changed

Lines changed: 24 additions & 21 deletions

‎td/telegram/ChatReactions.cpp‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
//
77
#include "td/telegram/ChatReactions.h"
88

9-
#include "td/telegram/MessageReaction.h"
10-
#include "td/telegram/telegram_api.h"
11-
129
#include "td/utils/algorithm.h"
1310

1411
namespace td {

‎td/telegram/ConfigManager.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include "td/telegram/JsonValue.h"
1414
#include "td/telegram/LinkManager.h"
1515
#include "td/telegram/logevent/LogEvent.h"
16-
#include "td/telegram/MessageReaction.h"
1716
#include "td/telegram/misc.h"
1817
#include "td/telegram/net/AuthDataShared.h"
1918
#include "td/telegram/net/ConnectionCreator.h"

‎td/telegram/FullMessageId.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "td/telegram/telegram_api.h"
1212

1313
#include "td/utils/common.h"
14+
#include "td/utils/HashTableUtils.h"
1415
#include "td/utils/StringBuilder.h"
1516

1617
namespace td {

‎td/telegram/MessageReaction.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
#include "td/telegram/Global.h"
1313
#include "td/telegram/MessageSender.h"
1414
#include "td/telegram/MessagesManager.h"
15-
#include "td/telegram/OptionManager.h"
1615
#include "td/telegram/ServerMessageId.h"
1716
#include "td/telegram/Td.h"
1817
#include "td/telegram/telegram_api.h"

‎td/telegram/MessagesManager.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38697,7 +38697,7 @@ void MessagesManager::on_get_channel_difference(DialogId dialog_id, int32 reques
3869738697

3869838698
if (difference_ptr == nullptr) {
3869938699
CHECK(status.is_error());
38700-
bool have_access = have_input_peer(dialog_id, AccessRights::Read) && status.error().message() != "CHANNEL_INVALID";
38700+
bool have_access = have_input_peer(dialog_id, AccessRights::Read) && status.message() != "CHANNEL_INVALID";
3870138701
if (have_access) {
3870238702
if (d == nullptr) {
3870338703
force_create_dialog(dialog_id, "on_get_channel_difference failed");

‎td/telegram/ReactionType.cpp‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@
77
#include "td/telegram/ReactionType.h"
88

99
#include "td/telegram/ConfigManager.h"
10+
#include "td/telegram/Global.h"
1011
#include "td/telegram/misc.h"
1112
#include "td/telegram/OptionManager.h"
1213
#include "td/telegram/StickersManager.h"
1314
#include "td/telegram/Td.h"
1415

16+
#include "td/actor/actor.h"
17+
1518
#include "td/utils/as.h"
1619
#include "td/utils/base64.h"
1720
#include "td/utils/buffer.h"
1821
#include "td/utils/crypto.h"
1922
#include "td/utils/emoji.h"
23+
#include "td/utils/logging.h"
24+
#include "td/utils/Slice.h"
2025
#include "td/utils/SliceBuilder.h"
2126
#include "td/utils/Status.h"
2227
#include "td/utils/utf8.h"

‎td/telegram/ReactionType.h‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@
1111

1212
#include "td/utils/common.h"
1313
#include "td/utils/FlatHashMap.h"
14+
#include "td/utils/HashTableUtils.h"
1415
#include "td/utils/Promise.h"
1516
#include "td/utils/StringBuilder.h"
1617

1718
namespace td {
1819

20+
struct ReactionTypeHash;
21+
1922
class Td;
2023

2124
class ReactionType {

‎td/telegram/StoryFullId.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "td/telegram/StoryId.h"
1111

1212
#include "td/utils/common.h"
13+
#include "td/utils/HashTableUtils.h"
1314
#include "td/utils/StringBuilder.h"
1415

1516
namespace td {

‎td/telegram/Td.cpp‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
#include "td/utils/SliceBuilder.h"
171171
#include "td/utils/Status.h"
172172
#include "td/utils/Timer.h"
173-
#include "td/utils/tl_parsers.h"
174173
#include "td/utils/utf8.h"
175174

176175
#include <limits>

‎td/telegram/net/MtprotoHeader.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
#include "td/utils/common.h"
1212
#include "td/utils/port/RwMutex.h"
13-
#include "td/utils/Slice.h"
1413

1514
namespace td {
1615

0 commit comments

Comments
 (0)