Fixed archived stickers loading.

This commit is contained in:
John Preston 2016-07-22 14:59:35 +03:00
parent faad13d07e
commit cd986d6f5d
1 changed files with 1 additions and 1 deletions

View File

@ -1317,7 +1317,7 @@ void StickersBox::getArchivedDone(uint64 offsetId, const MTPmessages_ArchivedSti
if (auto set = Stickers::feedSet(stickerSet.c_stickerSet())) {
auto index = archived.indexOf(set->id);
if (index != archived.size() - 1) {
if (archived.isEmpty() || index != archived.size() - 1) {
if (index < archived.size() - 1) {
archived.removeAt(index);
}