From 33763103d3bd429212e42fa1caeddf5d57760866 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Mon, 4 Sep 2023 22:16:23 +0200 Subject: [PATCH] Fix emoji filter not working properly for other languages --- indra/newview/llfloateremojipicker.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/indra/newview/llfloateremojipicker.cpp b/indra/newview/llfloateremojipicker.cpp index d6768be2fa..cae379a56e 100644 --- a/indra/newview/llfloateremojipicker.cpp +++ b/indra/newview/llfloateremojipicker.cpp @@ -536,9 +536,10 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize) for (const LLEmojiGroup& group : groups) { // List all categories in group - for (const std::string& category : group.Categories) + for (std::string category : group.Categories) // Filter not working properly { // List all emojis in category + LLStringUtil::toLower(category); // Filter not working properly const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category); if (item != category2Descr.end()) { @@ -550,9 +551,10 @@ void LLFloaterEmojiPicker::fillEmojis(bool fromResize) else { // List all categories in the selected group - for (const std::string& category : groups[sSelectedGroupIndex].Categories) + for (std::string category : groups[sSelectedGroupIndex].Categories) // Filter not working properly { // List all emojis in category + LLStringUtil::toLower(category); // Filter not working properly const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category); if (item != category2Descr.end()) {