Fix warning.
GitOrigin-RevId: f2e991783d1897c23f857a20bf109c138eb96489
This commit is contained in:
parent
c874b1d4b1
commit
a74cda9603
@ -5001,7 +5001,7 @@ void StickersManager::on_get_emoji_keywords_difference(
|
||||
}
|
||||
version = keywords->version_;
|
||||
auto *pmc = G()->td_db()->get_sqlite_sync_pmc();
|
||||
pmc->begin_transaction();
|
||||
pmc->begin_transaction().ensure();
|
||||
for (auto &keyword_ptr : keywords->keywords_) {
|
||||
switch (keyword_ptr->get_id()) {
|
||||
case telegram_api::emojiKeyword::ID: {
|
||||
@ -5058,7 +5058,7 @@ void StickersManager::on_get_emoji_keywords_difference(
|
||||
}
|
||||
pmc->set(get_emoji_language_code_version_database_key(language_code), to_string(version));
|
||||
pmc->set(get_emoji_language_code_last_difference_time_database_key(language_code), to_string(G()->unix_time()));
|
||||
pmc->commit_transaction();
|
||||
pmc->commit_transaction().ensure();
|
||||
emoji_language_code_versions_[language_code] = version;
|
||||
emoji_language_code_last_difference_times_[language_code] = static_cast<int32>(Time::now_cached());
|
||||
}
|
||||
|
Reference in New Issue
Block a user