2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Move some calls from App namespace.

This commit is contained in:
John Preston
2019-01-18 16:27:37 +04:00
parent e7804d014d
commit 4111da1dd0
74 changed files with 896 additions and 852 deletions

View File

@@ -201,11 +201,11 @@ void StickerSetBox::Inner::gotSet(const MTPmessages_StickerSet &set) {
auto &v = d.vdocuments.v;
_pack.reserve(v.size());
_packOvers.reserve(v.size());
for (int i = 0, l = v.size(); i < l; ++i) {
auto doc = Auth().data().document(v.at(i));
if (!doc->sticker()) continue;
for (const auto &item : v) {
const auto document = Auth().data().processDocument(item);
if (!document->sticker()) continue;
_pack.push_back(doc);
_pack.push_back(document);
_packOvers.push_back(Animation());
}
auto &packs = d.vpacks.v;