Load installed sticker sets before changing sticker set.
GitOrigin-RevId: f4794d3c65327aa173030f6e53aaccc23875aff0
This commit is contained in:
parent
8a8ea50a81
commit
6422e77e15
@ -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));
|
load_sticker_sets({set_id}, std::move(promise));
|
||||||
return;
|
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) {
|
if (is_archived) {
|
||||||
is_installed = true;
|
is_installed = true;
|
||||||
|
@ -2967,7 +2967,7 @@ class ChangeStickerSetRequest : public RequestOnceActor {
|
|||||||
, set_id_(set_id)
|
, set_id_(set_id)
|
||||||
, is_installed_(is_installed)
|
, is_installed_(is_installed)
|
||||||
, is_archived_(is_archived) {
|
, is_archived_(is_archived) {
|
||||||
set_tries(3);
|
set_tries(4);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user