Update Emoji picker on selection

master
Ansariel 2023-09-22 11:25:11 +02:00
parent 19c64ebfda
commit 549bbd8181
1 changed files with 7 additions and 0 deletions

View File

@ -526,11 +526,18 @@ void FSCommon::updateUsedEmojis(LLWString text)
{
LLEmojiDictionary* dictionary = LLEmojiDictionary::getInstance();
bool emojiSent = false;
for (llwchar& c : text)
{
if (dictionary->isEmoji(c))
{
LLFloaterEmojiPicker::onEmojiUsed(c);
emojiSent = true;
}
}
if (emojiSent)
{
LLFloaterEmojiPicker::onRecentlyUsedChanged();
}
}