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

Writing installed, featured, recent and archived stickers separately.

This commit is contained in:
John Preston
2016-07-21 13:09:47 +03:00
parent b35c99cb0c
commit 81850b78c7
9 changed files with 423 additions and 254 deletions

View File

@@ -1005,7 +1005,14 @@ void ApiWrap::gotStickerSet(uint64 setId, const MTPmessages_StickerSet &result)
Local::writeUserSettings();
}
Local::writeStickers();
if (it->flags & MTPDstickerSet::Flag::f_installed) {
if (!(it->flags & MTPDstickerSet::Flag::f_archived)) {
Local::writeInstalledStickers();
}
}
if (it->flags & MTPDstickerSet_ClientFlag::f_featured) {
Local::writeFeaturedStickers();
}
if (App::main()) emit App::main()->stickersUpdated();
}