Fix misprint.
This commit is contained in:
parent
ada09fecee
commit
2e943a6c85
@ -215,7 +215,7 @@ DcId Global::get_webfile_dc_id() const {
|
||||
return DcId::internal(dc_id);
|
||||
}
|
||||
|
||||
bool Global::ignore_backgrond_updates() const {
|
||||
bool Global::ignore_background_updates() const {
|
||||
return !parameters_.use_file_db && !parameters_.use_secret_chats &&
|
||||
shared_config_->get_option_boolean("ignore_background_updates");
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ class Global : public ActorContext {
|
||||
return parameters_.use_test_dc;
|
||||
}
|
||||
|
||||
bool ignore_backgrond_updates() const;
|
||||
bool ignore_background_updates() const;
|
||||
|
||||
NetQueryCreator &net_query_creator() {
|
||||
return *net_query_creator_.get();
|
||||
|
@ -12214,7 +12214,7 @@ void MessagesManager::init() {
|
||||
if (!dialog_filters.empty()) {
|
||||
DialogFiltersLogEvent log_event;
|
||||
if (log_event_parse(log_event, dialog_filters).is_ok()) {
|
||||
dialog_filters_updated_date_ = G()->ignore_backgrond_updates() ? 0 : log_event.updated_date;
|
||||
dialog_filters_updated_date_ = G()->ignore_background_updates() ? 0 : log_event.updated_date;
|
||||
std::unordered_set<DialogFilterId, DialogFilterIdHash> server_dialog_filter_ids;
|
||||
for (auto &dialog_filter : log_event.server_dialog_filters_out) {
|
||||
if (server_dialog_filter_ids.insert(dialog_filter->dialog_filter_id).second) {
|
||||
@ -35069,7 +35069,7 @@ string MessagesManager::get_channel_pts_key(DialogId dialog_id) {
|
||||
}
|
||||
|
||||
int32 MessagesManager::load_channel_pts(DialogId dialog_id) const {
|
||||
if (G()->ignore_backgrond_updates()) {
|
||||
if (G()->ignore_background_updates()) {
|
||||
G()->td_db()->get_binlog_pmc()->erase(get_channel_pts_key(dialog_id)); // just in case
|
||||
return 0;
|
||||
}
|
||||
@ -35118,7 +35118,7 @@ void MessagesManager::set_channel_pts(Dialog *d, int32 new_pts, const char *sour
|
||||
repair_channel_server_unread_count(d);
|
||||
}
|
||||
}
|
||||
if (!G()->ignore_backgrond_updates()) {
|
||||
if (!G()->ignore_background_updates()) {
|
||||
G()->td_db()->get_binlog_pmc()->set(get_channel_pts_key(d->dialog_id), to_string(new_pts));
|
||||
}
|
||||
} else if (new_pts < d->pts) {
|
||||
@ -35224,7 +35224,7 @@ void MessagesManager::get_channel_difference(DialogId dialog_id, int32 pts, bool
|
||||
return;
|
||||
}
|
||||
|
||||
if (force && get_channel_difference_to_log_event_id_.count(dialog_id) == 0 && !G()->ignore_backgrond_updates()) {
|
||||
if (force && get_channel_difference_to_log_event_id_.count(dialog_id) == 0 && !G()->ignore_background_updates()) {
|
||||
auto channel_id = dialog_id.get_channel_id();
|
||||
CHECK(input_channel->get_id() == telegram_api::inputChannel::ID);
|
||||
auto access_hash = static_cast<const telegram_api::inputChannel &>(*input_channel).access_hash_;
|
||||
@ -36628,7 +36628,7 @@ void MessagesManager::on_binlog_events(vector<BinlogEvent> &&events) {
|
||||
break;
|
||||
}
|
||||
case LogEvent::HandlerType::GetChannelDifference: {
|
||||
if (G()->ignore_backgrond_updates()) {
|
||||
if (G()->ignore_background_updates()) {
|
||||
binlog_erase(G()->td_db()->get_binlog(), event.id_);
|
||||
break;
|
||||
}
|
||||
|
@ -327,13 +327,13 @@ void UpdatesManager::on_qts_ack(PtsManager::PtsId ack_token) {
|
||||
void UpdatesManager::save_pts(int32 pts) {
|
||||
if (pts == std::numeric_limits<int32>::max()) {
|
||||
G()->td_db()->get_binlog_pmc()->erase("updates.pts");
|
||||
} else if (!G()->ignore_backgrond_updates()) {
|
||||
} else if (!G()->ignore_background_updates()) {
|
||||
G()->td_db()->get_binlog_pmc()->set("updates.pts", to_string(pts));
|
||||
}
|
||||
}
|
||||
|
||||
void UpdatesManager::save_qts(int32 qts) {
|
||||
if (!G()->ignore_backgrond_updates()) {
|
||||
if (!G()->ignore_background_updates()) {
|
||||
G()->td_db()->get_binlog_pmc()->set("updates.qts", to_string(qts));
|
||||
}
|
||||
}
|
||||
@ -387,7 +387,7 @@ void UpdatesManager::set_date(int32 date, bool from_update, string date_source)
|
||||
|
||||
date_ = date;
|
||||
date_source_ = std::move(date_source);
|
||||
if (!G()->ignore_backgrond_updates()) {
|
||||
if (!G()->ignore_background_updates()) {
|
||||
G()->td_db()->get_binlog_pmc()->set("updates.date", to_string(date));
|
||||
}
|
||||
} else if (date < date_) {
|
||||
@ -1124,7 +1124,7 @@ void UpdatesManager::init_state() {
|
||||
}
|
||||
|
||||
auto pmc = G()->td_db()->get_binlog_pmc();
|
||||
if (G()->ignore_backgrond_updates()) {
|
||||
if (G()->ignore_background_updates()) {
|
||||
// just in case
|
||||
pmc->erase("updates.pts");
|
||||
pmc->erase("updates.qts");
|
||||
|
Loading…
Reference in New Issue
Block a user