2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Added ability to delete and reorder mask sets.

Moved ApiWrap::stickerSetDisenabled and ApiWrap::stickersSaveOrder
to ApiWrap::saveStickerSets as lambdas.
This commit is contained in:
23rd
2021-03-29 23:26:14 +03:00
parent 70f92a7817
commit 2bd3a8aaff
3 changed files with 130 additions and 86 deletions

View File

@@ -944,12 +944,14 @@ void StickersBox::saveChanges() {
if (const auto widget = _installed.widget()) {
session().api().saveStickerSets(
widget->getOrder(),
widget->getRemovedSets());
widget->getRemovedSets(),
false);
}
if (const auto widget = _masks.widget()) {
session().api().saveStickerSets(
widget->getOrder(),
widget->getRemovedSets());
widget->getRemovedSets(),
true);
}
}