Skip to content

Commit c95cb5d

Browse files
committed
Minor imrovements.
1 parent c2ccf0d commit c95cb5d

15 files changed

Lines changed: 23 additions & 12 deletions

‎td/generate/scheme/td_api.tl‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ reactionTypeCustomEmoji custom_emoji_id:int64 = ReactionType;
12221222
//@description Contains information about a forwarded message
12231223
//@origin Origin of the forwarded message
12241224
//@date Point in time (Unix timestamp) when the message was originally sent
1225-
//@source For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, information about the source message, from which the message was forwarded last time; may be null for other forwards or if unknown
1225+
//@source For messages forwarded to the chat with the current user (Saved Messages), to the Replies bot chat, or to the channel's discussion group, information about the source message from which the message was forwarded last time; may be null for other forwards or if unknown
12261226
//@public_service_announcement_type The type of a public service announcement for the forwarded message
12271227
messageForwardInfo origin:MessageOrigin date:int32 source:forwardSource public_service_announcement_type:string = MessageForwardInfo;
12281228

@@ -1247,7 +1247,7 @@ messageReplyInfo reply_count:int32 recent_replier_ids:vector<MessageSender> last
12471247
//@recent_sender_ids Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats
12481248
messageReaction type:ReactionType total_count:int32 is_chosen:Bool used_sender_id:MessageSender recent_sender_ids:vector<MessageSender> = MessageReaction;
12491249

1250-
//@description Contains a list of reactions added to a message @reactions List of added reactions @are_tags True, if the reactions are tags and Telegram Premium users can filter messages by them; currently, always false
1250+
//@description Contains a list of reactions added to a message @reactions List of added reactions @are_tags True, if the reactions are tags and Telegram Premium users can filter messages by them; currently, always false
12511251
messageReactions reactions:vector<messageReaction> are_tags:Bool = MessageReactions;
12521252

12531253

@@ -4045,7 +4045,7 @@ availableReaction type:ReactionType needs_premium:Bool = AvailableReaction;
40454045
//@popular_reactions List of popular reactions
40464046
//@allow_custom_emoji True, if any custom emoji reaction can be added by Telegram Premium subscribers
40474047
//@are_tags True, if the reactions will be tags and the message can be found by them; currently, always false
4048-
//@unavailability_reason The reason why the current user can't add reactions to the message, despite some other users can; null if none
4048+
//@unavailability_reason The reason why the current user can't add reactions to the message, despite some other users can; may be null if none
40494049
availableReactions top_reactions:vector<availableReaction> recent_reactions:vector<availableReaction> popular_reactions:vector<availableReaction> allow_custom_emoji:Bool are_tags:Bool unavailability_reason:ReactionUnavailabilityReason = AvailableReactions;
40504050

40514051
//@description Contains information about an emoji reaction
@@ -6730,7 +6730,7 @@ updateActiveEmojiReactions emojis:vector<string> = Update;
67306730
//@description The type of default reaction has changed @reaction_type The new type of the default reaction
67316731
updateDefaultReactionType reaction_type:ReactionType = Update;
67326732

6733-
//@description Used Saved Messages tags has changed @tags The new used tags
6733+
//@description Used Saved Messages tags have changed @tags The new used tags
67346734
updateSavedMessagesTags tags:savedMessagesTags = Update;
67356735

67366736
//@description The parameters of speech recognition without Telegram Premium subscription has changed

‎td/telegram/BoostManager.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include "td/utils/buffer.h"
2525
#include "td/utils/logging.h"
2626
#include "td/utils/misc.h"
27+
#include "td/utils/SliceBuilder.h"
2728

2829
namespace td {
2930

‎td/telegram/CountryInfoManager.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "td/utils/Random.h"
2424
#include "td/utils/Time.h"
2525
#include "td/utils/tl_parsers.h"
26+
#include "td/utils/utf8.h"
2627

2728
namespace td {
2829

‎td/telegram/GlobalPrivacySettings.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include "td/actor/actor.h"
1717

1818
#include "td/utils/buffer.h"
19+
#include "td/utils/logging.h"
1920
#include "td/utils/Status.h"
2021

2122
namespace td {

‎td/telegram/MessageForwardInfo.cpp‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@
1111
#include "td/telegram/DialogManager.h"
1212
#include "td/telegram/MessageSender.h"
1313
#include "td/telegram/MessagesManager.h"
14+
#include "td/telegram/ServerMessageId.h"
1415
#include "td/telegram/Td.h"
1516

1617
#include "td/utils/logging.h"
18+
#include "td/utils/misc.h"
1719

1820
namespace td {
1921

‎td/telegram/MessageForwardInfo.hpp‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
//
77
#pragma once
88

9-
#include "td/telegram/DialogId.h"
109
#include "td/telegram/MessageForwardInfo.h"
11-
#include "td/telegram/MessageId.h"
1210
#include "td/telegram/MessageOrigin.hpp"
1311

1412
#include "td/utils/common.h"

‎td/telegram/MessagesManager.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class GetPinnedSavedDialogsQuery final : public Td::ResultHandler {
207207
}
208208

209209
auto result = result_ptr.move_as_ok();
210-
LOG(INFO) << "Receive pinned Saved Messages topics: " << to_string(result);
210+
LOG(INFO) << "Receive result for GetPinnedSavedDialogsQuery: " << to_string(result);
211211
td_->messages_manager_->on_get_saved_messages_topics(std::move(result), std::move(promise_));
212212
}
213213

@@ -241,7 +241,7 @@ class GetSavedDialogsQuery final : public Td::ResultHandler {
241241
}
242242

243243
auto result = result_ptr.move_as_ok();
244-
LOG(INFO) << "Receive Saved Messages topics: " << to_string(result);
244+
LOG(INFO) << "Receive result for GetSavedDialogsQuery: " << to_string(result);
245245
td_->messages_manager_->on_get_saved_messages_topics(std::move(result), std::move(promise_));
246246
}
247247

‎td/telegram/OptionManager.cpp‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "td/actor/actor.h"
3939

4040
#include "td/utils/algorithm.h"
41+
#include "td/utils/FlatHashSet.h"
4142
#include "td/utils/logging.h"
4243
#include "td/utils/misc.h"
4344
#include "td/utils/port/Clocks.h"

‎td/telegram/ReactionManager.cpp‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#include "td/utils/Status.h"
3030

3131
#include <algorithm>
32-
#include <tuple>
32+
#include <type_traits>
3333

3434
namespace td {
3535

@@ -594,8 +594,11 @@ void ReactionManager::reload_reactions() {
594594
}
595595

596596
void ReactionManager::reload_reaction_list(ReactionListType reaction_list_type) {
597+
if (G()->close_flag()) {
598+
return;
599+
}
597600
auto &reaction_list = get_reaction_list(reaction_list_type);
598-
if (G()->close_flag() || reaction_list.is_being_reloaded_) {
601+
if (reaction_list.is_being_reloaded_) {
599602
return;
600603
}
601604
CHECK(!td_->auth_manager_->is_bot());

‎td/telegram/ReactionManager.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include "td/utils/common.h"
2020
#include "td/utils/Promise.h"
21+
#include "td/utils/Status.h"
2122
#include "td/utils/StringBuilder.h"
2223

2324
#include <utility>

0 commit comments

Comments
 (0)