Fix emoji filter not working properly for other languages

meow-7.2.2
Ansariel 2023-09-04 22:16:23 +02:00
parent ae53116c6f
commit 33763103d3
1 changed files with 4 additions and 2 deletions

View File

@ -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) // <FS:Ansariel> Filter not working properly
{
// List all emojis in category
LLStringUtil::toLower(category); // <FS:Ansariel> 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) // <FS:Ansariel> Filter not working properly
{
// List all emojis in category
LLStringUtil::toLower(category); // <FS:Ansariel> Filter not working properly
const LLEmojiDictionary::cat2descrs_map_t::const_iterator& item = category2Descr.find(category);
if (item != category2Descr.end())
{