Added Add-to-Emoji-Set submenu for custom emoji from foreign packs.

This commit is contained in:
23rd
2026-04-20 16:25:34 +03:00
parent 7b22a2aea7
commit d34f875d35
4 changed files with 150 additions and 63 deletions
@@ -1606,6 +1606,12 @@ void StickerSetBox::Inner::contextMenuEvent(QContextMenuEvent *e) {
}
}, &st::menuIconCopy);
}
if (!amSetCreator()) {
Api::AddAddToEmojiSetAction(
Ui::Menu::CreateAddActionCallback(_menu.get()),
_show,
_pack[index]);
}
} else if (details.type != SendMenu::Type::Disabled) {
const auto document = _pack[index];
const auto send = crl::guard(this, [=](Api::SendOptions options) {