Handle installed sticker sets of incorrect type in the database.

This commit is contained in:
levlam 2022-07-24 15:03:54 +03:00
parent 40b5b586e6
commit 8183e062ab

View File

@ -4449,8 +4449,7 @@ void StickersManager::on_load_installed_sticker_sets_finished(StickerType sticke
auto sticker_set = get_sticker_set(set_id);
CHECK(sticker_set != nullptr);
CHECK(sticker_set->is_inited);
CHECK(sticker_set->sticker_type == sticker_type);
if (sticker_set->is_installed && !sticker_set->is_archived) {
if (sticker_set->is_installed && !sticker_set->is_archived && sticker_set->sticker_type == sticker_type) {
installed_sticker_set_ids_[type].push_back(set_id);
} else {
need_reload = true;