Minor improvements.
This commit is contained in:
parent
aa6ed42734
commit
10680fe353
@ -291,7 +291,7 @@ function split_file($file, $chunks, $undo) {
|
|||||||
'group_call_manager[_(-][^.]|GroupCallManager' => 'GroupCallManager',
|
'group_call_manager[_(-][^.]|GroupCallManager' => 'GroupCallManager',
|
||||||
'HashtagHints' => 'HashtagHints',
|
'HashtagHints' => 'HashtagHints',
|
||||||
'inline_queries_manager[_(-][^.]|InlineQueriesManager' => 'InlineQueriesManager',
|
'inline_queries_manager[_(-][^.]|InlineQueriesManager' => 'InlineQueriesManager',
|
||||||
'language_pack_manager[_(-][^.]|LanguagePackManager' => 'LanguagePackManager',
|
'language_pack_manager[_(-]|LanguagePackManager' => 'LanguagePackManager',
|
||||||
'link_manager[_(-][^.]|LinkManager' => 'LinkManager',
|
'link_manager[_(-][^.]|LinkManager' => 'LinkManager',
|
||||||
'LogeventIdWithGeneration|add_log_event|delete_log_event|get_erase_log_event_promise|parse_time|store_time' => 'logevent/LogEventHelper',
|
'LogeventIdWithGeneration|add_log_event|delete_log_event|get_erase_log_event_promise|parse_time|store_time' => 'logevent/LogEventHelper',
|
||||||
'MessageCopyOptions' => 'MessageCopyOptions',
|
'MessageCopyOptions' => 'MessageCopyOptions',
|
||||||
@ -303,7 +303,7 @@ function split_file($file, $chunks, $undo) {
|
|||||||
'poll_manager[_(-][^.]|PollManager' => "PollManager",
|
'poll_manager[_(-][^.]|PollManager' => "PollManager",
|
||||||
'PublicDialogType|get_public_dialog_type' => 'PublicDialogType',
|
'PublicDialogType|get_public_dialog_type' => 'PublicDialogType',
|
||||||
'SecretChatActor' => 'SecretChatActor',
|
'SecretChatActor' => 'SecretChatActor',
|
||||||
'secret_chats_manager[_(-][^.]|SecretChatsManager' => 'SecretChatsManager',
|
'secret_chats_manager[_(-]|SecretChatsManager' => 'SecretChatsManager',
|
||||||
'sponsored_message_manager[_(-][^.]|SponsoredMessageManager' => 'SponsoredMessageManager',
|
'sponsored_message_manager[_(-][^.]|SponsoredMessageManager' => 'SponsoredMessageManager',
|
||||||
'stickers_manager[_(-][^.]|StickersManager' => 'StickersManager',
|
'stickers_manager[_(-][^.]|StickersManager' => 'StickersManager',
|
||||||
'[>](td_db[(][)]|get_td_db_impl[(])|TdDb[^A-Za-z]' => 'TdDb',
|
'[>](td_db[(][)]|get_td_db_impl[(])|TdDb[^A-Za-z]' => 'TdDb',
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#include "td/telegram/telegram_api.hpp"
|
#include "td/telegram/telegram_api.hpp"
|
||||||
|
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/format.h"
|
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
#include "td/utils/misc.h"
|
#include "td/utils/misc.h"
|
||||||
#include "td/utils/SliceBuilder.h"
|
#include "td/utils/SliceBuilder.h"
|
||||||
|
@ -102,9 +102,9 @@ void get_user_info(Td *td, UserId user_id, Promise<td_api::object_ptr<td_api::us
|
|||||||
|
|
||||||
void set_user_info(Td *td, UserId user_id, td_api::object_ptr<td_api::formattedText> &&message,
|
void set_user_info(Td *td, UserId user_id, td_api::object_ptr<td_api::formattedText> &&message,
|
||||||
Promise<td_api::object_ptr<td_api::userSupportInfo>> &&promise) {
|
Promise<td_api::object_ptr<td_api::userSupportInfo>> &&promise) {
|
||||||
TRY_RESULT_PROMISE(
|
TRY_RESULT_PROMISE(promise, formatted_text,
|
||||||
promise, formatted_text,
|
get_formatted_text(td, DialogId(td->contacts_manager_->get_my_id()), std::move(message), false,
|
||||||
get_formatted_text(td, DialogId(td->contacts_manager_->get_my_id()), std::move(message), false, true, true, false));
|
true, true, false));
|
||||||
td->create_handler<EditUserInfoQuery>(std::move(promise))->send(user_id, std::move(formatted_text));
|
td->create_handler<EditUserInfoQuery>(std::move(promise))->send(user_id, std::move(formatted_text));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -196,8 +196,8 @@ class Td final : public Actor {
|
|||||||
ActorOwn<NetStatsManager> net_stats_manager_;
|
ActorOwn<NetStatsManager> net_stats_manager_;
|
||||||
ActorOwn<PasswordManager> password_manager_;
|
ActorOwn<PasswordManager> password_manager_;
|
||||||
ActorOwn<PrivacyManager> privacy_manager_;
|
ActorOwn<PrivacyManager> privacy_manager_;
|
||||||
ActorOwn<SecureManager> secure_manager_;
|
|
||||||
ActorOwn<SecretChatsManager> secret_chats_manager_;
|
ActorOwn<SecretChatsManager> secret_chats_manager_;
|
||||||
|
ActorOwn<SecureManager> secure_manager_;
|
||||||
ActorOwn<StateManager> state_manager_;
|
ActorOwn<StateManager> state_manager_;
|
||||||
ActorOwn<StorageManager> storage_manager_;
|
ActorOwn<StorageManager> storage_manager_;
|
||||||
ActorOwn<PhoneNumberManager> verify_phone_number_manager_;
|
ActorOwn<PhoneNumberManager> verify_phone_number_manager_;
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
#include "td/utils/misc.h"
|
#include "td/utils/misc.h"
|
||||||
#include "td/utils/Slice.h"
|
#include "td/utils/Slice.h"
|
||||||
#include "td/utils/translit.h"
|
#include "td/utils/translit.h"
|
||||||
#include "td/utils/unicode.h"
|
|
||||||
#include "td/utils/utf8.h"
|
#include "td/utils/utf8.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -30,7 +30,7 @@ struct SetNode {
|
|||||||
return first;
|
return first;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetNode(): first() {
|
SetNode() : first() {
|
||||||
}
|
}
|
||||||
explicit SetNode(KeyT key) : first(std::move(key)) {
|
explicit SetNode(KeyT key) : first(std::move(key)) {
|
||||||
}
|
}
|
||||||
@ -100,7 +100,7 @@ struct SetNode<KeyT, typename std::enable_if_t<(sizeof(KeyT) > 28 * sizeof(void
|
|||||||
return impl_->first;
|
return impl_->first;
|
||||||
}
|
}
|
||||||
|
|
||||||
SetNode(): impl_() {
|
SetNode() : impl_() {
|
||||||
}
|
}
|
||||||
explicit SetNode(KeyT key) : impl_(td::make_unique<Impl>(std::move(key))) {
|
explicit SetNode(KeyT key) : impl_(td::make_unique<Impl>(std::move(key))) {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user