Support new ('modern') API file locations.

This commit is contained in:
John Preston
2019-03-22 18:19:43 +04:00
parent eba2a98703
commit aa8f62da9d
41 changed files with 947 additions and 566 deletions
@@ -225,7 +225,7 @@ void StickerSetBox::Inner::gotSet(const MTPmessages_StickerSet &set) {
}
});
}
data.vset.match([&](const MTPDstickerSet & set) {
data.vset.match([&](const MTPDstickerSet &set) {
_setTitle = Stickers::GetSetTitle(set);
_setShortName = qs(set.vshort_name);
_setId = set.vid.v;
@@ -237,7 +237,7 @@ void StickerSetBox::Inner::gotSet(const MTPmessages_StickerSet &set) {
? set.vinstalled_date.v
: TimeId(0);
_setThumbnail = set.has_thumb()
? App::image(set.vthumb)
? Images::Create(set, set.vthumb)
: ImagePtr();
auto &sets = Auth().data().stickerSetsRef();
const auto it = sets.find(_setId);