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

Added ability to remove recent stickers.

This commit is contained in:
23rd
2020-08-19 17:04:05 +03:00
parent 8a34f29329
commit 6e3fb253b9
6 changed files with 91 additions and 35 deletions

View File

@@ -2093,6 +2093,15 @@ void StickersListWidget::fillContextMenu(
menu->addAction(tr::lng_context_pack_info(tr::now), [=] {
showStickerSetBox(document);
});
if (const auto id = set.id; id == Data::Stickers::RecentSetId) {
menu->addAction(tr::lng_recent_stickers_remove(tr::now), [=] {
Api::ToggleRecentSticker(
document,
Data::FileOriginStickerSet(id, 0),
false);
});
}
}
}