Drop sticker set short_name set after receiving STICKERSET_INVALID.

GitOrigin-RevId: e77c9d60fff36263ca85b05212c77e578df5c902
This commit is contained in:
levlam 2019-06-17 20:09:45 +03:00
parent 00bf243f37
commit 10e2fd28c0

View File

@ -1983,6 +1983,12 @@ void StickersManager::update_load_requests(StickerSet *sticker_set, bool with_st
}
sticker_set->load_without_stickers_requests.clear();
if (status.message() == "STICKERSET_INVALID") {
// the sticker set is likely to be deleted
// clear short_name_to_sticker_set_id_ to allow next searchStickerSet request to succeed
short_name_to_sticker_set_id_.erase(clean_username(sticker_set->short_name));
}
}
void StickersManager::update_load_request(uint32 load_request_id, const Status &status) {