Fix first call to searchEmojis.

GitOrigin-RevId: 56131407cdc354bb2c14ca1a190e4f825c0362e8
This commit is contained in:
levlam 2019-06-27 15:31:29 +03:00
parent 8add7cda73
commit f921abfa86

View File

@ -4865,7 +4865,8 @@ vector<string> StickersManager::get_emoji_language_codes(Promise<Unit> &promise)
double now = Time::now_cached();
for (auto &language_code : it->second) {
double last_difference_time = get_emoji_language_code_last_difference_time(language_code);
if (last_difference_time < now - EMOJI_KEYWORDS_UPDATE_DELAY) {
if (last_difference_time < now - EMOJI_KEYWORDS_UPDATE_DELAY &&
get_emoji_language_code_version(language_code) != 0) {
load_emoji_keywords_difference(language_code);
}
}