From a74cda960391532d65e8c05974c6d404f0ace8dc Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 18 Jun 2019 02:05:32 +0300 Subject: [PATCH] Fix warning. GitOrigin-RevId: f2e991783d1897c23f857a20bf109c138eb96489 --- td/telegram/StickersManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); }