2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 15:15:13 +00:00

Scheme updated with covered stickers, not used yet.

This commit is contained in:
John Preston
2016-07-22 19:04:38 +03:00
parent cd986d6f5d
commit 02e54dd8ba
5 changed files with 133 additions and 37 deletions

View File

@@ -3838,8 +3838,8 @@ void HistoryWidget::featuredStickersGot(const MTPmessages_FeaturedStickers &stic
set.flags &= ~MTPDstickerSet_ClientFlag::f_featured; // mark for removing
}
for (int i = 0, l = d_sets.size(); i != l; ++i) {
if (d_sets.at(i).type() == mtpc_stickerSet) {
const auto &set(d_sets.at(i).c_stickerSet());
if (d_sets.at(i).type() == mtpc_stickerSetCovered && d_sets.at(i).c_stickerSetCovered().vset.type() == mtpc_stickerSet) {
const auto &set(d_sets.at(i).c_stickerSetCovered().vset.c_stickerSet());
auto it = sets.find(set.vid.v);
QString title = stickerSetTitle(set);
if (it == sets.cend()) {