diff --git a/td/telegram/StickersManager.cpp b/td/telegram/StickersManager.cpp index 5c4161980..24c0e1c97 100644 --- a/td/telegram/StickersManager.cpp +++ b/td/telegram/StickersManager.cpp @@ -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(Time::now_cached()); }