Load installed sticker sets before changing sticker set.

GitOrigin-RevId: f4794d3c65327aa173030f6e53aaccc23875aff0
This commit is contained in:
levlam 2018-03-10 14:15:23 +03:00
parent 8a8ea50a81
commit 6422e77e15
2 changed files with 5 additions and 1 deletions

View File

@ -2179,6 +2179,10 @@ void StickersManager::change_sticker_set(int64 set_id, bool is_installed, bool i
load_sticker_sets({set_id}, std::move(promise));
return;
}
if (!are_installed_sticker_sets_loaded_[sticker_set->is_masks]) {
load_installed_sticker_sets(sticker_set->is_masks, std::move(promise));
return;
}
if (is_archived) {
is_installed = true;

View File

@ -2967,7 +2967,7 @@ class ChangeStickerSetRequest : public RequestOnceActor {
, set_id_(set_id)
, is_installed_(is_installed)
, is_archived_(is_archived) {
set_tries(3);
set_tries(4);
}
};