mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Added support updateNewStickerSet and updateStickerSets for masks.
This commit is contained in:
parent
abe62475cb
commit
8e08f69508
2 changed files with 4 additions and 3 deletions
|
@ -2176,8 +2176,11 @@ void Updates::feedUpdate(const MTPUpdate &update) {
|
|||
} break;
|
||||
|
||||
case mtpc_updateStickerSets: {
|
||||
// Can't determine is it masks or stickers, so update both.
|
||||
session().data().stickers().setLastUpdate(0);
|
||||
session().api().updateStickers();
|
||||
session().data().stickers().setLastMasksUpdate(0);
|
||||
session().api().updateMasks();
|
||||
} break;
|
||||
|
||||
case mtpc_updateRecentStickers: {
|
||||
|
|
|
@ -1371,10 +1371,8 @@ void Stickers::newSetReceived(const MTPmessages_StickerSet &data) {
|
|||
LOG(("API Error: "
|
||||
"updateNewStickerSet with archived flag."));
|
||||
return;
|
||||
} else if (s.is_masks()) {
|
||||
return;
|
||||
}
|
||||
auto &order = setsOrderRef();
|
||||
auto &order = s.is_masks() ? maskSetsOrderRef() : setsOrderRef();
|
||||
int32 insertAtIndex = 0, currentIndex = order.indexOf(s.vid().v);
|
||||
if (currentIndex != insertAtIndex) {
|
||||
if (currentIndex > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue