mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Allow copying static emoji as well.
This commit is contained in:
parent
bb141b4268
commit
89dd9c93ef
1 changed files with 5 additions and 0 deletions
|
@ -1097,6 +1097,11 @@ void EmojiListWidget::fillRecentMenu(
|
|||
crl::guard(this, [=] { displaySet(setId); }),
|
||||
&st::menuIconShowAll);
|
||||
}
|
||||
} else if (emoji) {
|
||||
addAction(tr::lng_emoji_copy(tr::now), [=] {
|
||||
const auto text = emoji->text();
|
||||
TextUtilities::SetClipboardText({ text, { text } });
|
||||
}, &st::menuIconCopy);
|
||||
}
|
||||
auto id = RecentEmojiId{ emoji };
|
||||
if (custom) {
|
||||
|
|
Loading…
Add table
Reference in a new issue