2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Add sticker sets search.

This commit is contained in:
John Preston
2018-03-02 20:17:33 +03:00
parent e6dd7d7684
commit b007fcb537
11 changed files with 896 additions and 339 deletions

View File

@@ -163,8 +163,7 @@ void StickersBox::getArchivedDone(uint64 offsetId, const MTPmessages_ArchivedSti
auto addedSet = false;
auto changedSets = false;
auto &v = stickers.vsets.v;
for_const (auto &stickerSet, v) {
for_const (const auto &stickerSet, stickers.vsets.v) {
const MTPDstickerSet *setData = nullptr;
switch (stickerSet.type()) {
case mtpc_stickerSetCovered: {
@@ -202,7 +201,8 @@ void StickersBox::getArchivedDone(uint64 offsetId, const MTPmessages_ArchivedSti
if (addedSet) {
_archived.widget()->updateSize();
} else {
_allArchivedLoaded = v.isEmpty() || (!changedSets && offsetId != 0);
_allArchivedLoaded = stickers.vsets.v.isEmpty()
|| (!changedSets && offsetId != 0);
if (changedSets) {
loadMoreArchived();
}