Allow copying static emoji as well.

This commit is contained in:
John Preston 2023-08-22 15:06:50 +02:00
parent bb141b4268
commit 89dd9c93ef
1 changed files with 5 additions and 0 deletions

View File

@ -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) {