Added ability to add stickers not in set to favorites.

This commit is contained in:
23rd
2026-04-01 03:47:18 +03:00
parent 0fad7fc234
commit 30fa759cde
2 changed files with 4 additions and 0 deletions
@@ -3191,6 +3191,8 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) {
_menu->addAction(document->isStickerSetInstalled() ? tr::lng_context_pack_info(tr::now) : tr::lng_context_pack_add(tr::now), [=] {
showStickerPackInfo(document);
}, &st::menuIconStickers);
}
{
const auto isFaved = session->data().stickers().isFaved(document);
_menu->addAction(isFaved ? tr::lng_faved_stickers_remove(tr::now) : tr::lng_faved_stickers_add(tr::now), [=] {
Api::ToggleFavedSticker(controller->uiShow(), document, itemId);
@@ -287,6 +287,8 @@ void AddDocumentActions(
: tr::lng_context_pack_add(tr::now)),
[=] { ShowStickerPackInfo(document, list); },
&st::menuIconStickers);
}
if (document->sticker()) {
const auto isFaved = document->owner().stickers().isFaved(document);
menu->addAction(
(isFaved