Allow copying static emoji as well.
This commit is contained in:
parent
bb141b4268
commit
89dd9c93ef
|
@ -1097,6 +1097,11 @@ void EmojiListWidget::fillRecentMenu(
|
||||||
crl::guard(this, [=] { displaySet(setId); }),
|
crl::guard(this, [=] { displaySet(setId); }),
|
||||||
&st::menuIconShowAll);
|
&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 };
|
auto id = RecentEmojiId{ emoji };
|
||||||
if (custom) {
|
if (custom) {
|
||||||
|
|
Loading…
Reference in New Issue