mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Added ability to add stickers not in set to favorites.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user