mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Add sticker sets search.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user