Manage faved stickers from sticker context menu.

This commit is contained in:
John Preston
2017-08-02 22:57:49 +02:00
parent 134bc13169
commit 070456882e
13 changed files with 485 additions and 391 deletions
+1 -1
View File
@@ -1374,7 +1374,7 @@ bool StickerData::setInstalled() const {
return (it != Global::StickerSets().cend()) && !(it->flags & MTPDstickerSet::Flag::f_archived) && (it->flags & MTPDstickerSet::Flag::f_installed);
} break;
case mtpc_inputStickerSetShortName: {
QString name = qs(set.c_inputStickerSetShortName().vshort_name).toLower();
auto name = qs(set.c_inputStickerSetShortName().vshort_name).toLower();
for (auto it = Global::StickerSets().cbegin(), e = Global::StickerSets().cend(); it != e; ++it) {
if (it->shortName.toLower() == name) {
return !(it->flags & MTPDstickerSet::Flag::f_archived) && (it->flags & MTPDstickerSet::Flag::f_installed);