Handle installed sticker sets of incorrect type in the database.
This commit is contained in:
parent
40b5b586e6
commit
8183e062ab
@ -4449,8 +4449,7 @@ void StickersManager::on_load_installed_sticker_sets_finished(StickerType sticke
|
|||||||
auto sticker_set = get_sticker_set(set_id);
|
auto sticker_set = get_sticker_set(set_id);
|
||||||
CHECK(sticker_set != nullptr);
|
CHECK(sticker_set != nullptr);
|
||||||
CHECK(sticker_set->is_inited);
|
CHECK(sticker_set->is_inited);
|
||||||
CHECK(sticker_set->sticker_type == sticker_type);
|
if (sticker_set->is_installed && !sticker_set->is_archived && sticker_set->sticker_type == sticker_type) {
|
||||||
if (sticker_set->is_installed && !sticker_set->is_archived) {
|
|
||||||
installed_sticker_set_ids_[type].push_back(set_id);
|
installed_sticker_set_ids_[type].push_back(set_id);
|
||||||
} else {
|
} else {
|
||||||
need_reload = true;
|
need_reload = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user