Fix CE.
GitOrigin-RevId: 6117160e2ee0045bb0c7dc8e3e048a5aae2626f1
This commit is contained in:
parent
1aa94575e8
commit
b0dfc088ae
@ -13,6 +13,7 @@
|
|||||||
#include "td/telegram/Td.h"
|
#include "td/telegram/Td.h"
|
||||||
|
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
#include "td/telegram/td_api.h"
|
#include "td/telegram/td_api.h"
|
||||||
#include "td/telegram/telegram_api.h"
|
#include "td/telegram/telegram_api.h"
|
||||||
@ -49,7 +50,7 @@ void LanguagePackManager::on_language_code_changed() {
|
|||||||
|
|
||||||
void LanguagePackManager::on_language_pack_version_changed(int32 new_version) {
|
void LanguagePackManager::on_language_pack_version_changed(int32 new_version) {
|
||||||
Language *language = get_language(language_pack_, language_code_);
|
Language *language = get_language(language_pack_, language_code_);
|
||||||
auto version = language == nullptr ? -1 : language->version_;
|
int32 version = language == nullptr ? static_cast<int32>(-1) : language->version_.load();
|
||||||
if (version == -1) {
|
if (version == -1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -102,7 +103,7 @@ void LanguagePackManager::on_update_language_pack(tl_object_ptr<telegram_api::la
|
|||||||
}
|
}
|
||||||
|
|
||||||
Language *language = get_language(language_pack_, language_code_);
|
Language *language = get_language(language_pack_, language_code_);
|
||||||
auto version = language == nullptr ? -1 : language->version_;
|
int32 version = language == nullptr ? static_cast<int32>(-1) : language->version_.load();
|
||||||
if (difference->version_ <= version) {
|
if (difference->version_ <= version) {
|
||||||
LOG(INFO) << "Skip applying already applied updates";
|
LOG(INFO) << "Skip applying already applied updates";
|
||||||
return;
|
return;
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "td/utils/common.h"
|
#include "td/utils/common.h"
|
||||||
#include "td/utils/logging.h"
|
#include "td/utils/logging.h"
|
||||||
|
#include "td/utils/Status.h"
|
||||||
|
|
||||||
namespace td {
|
namespace td {
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
Loading…
Reference in New Issue
Block a user