diff --git a/indra/llui/llchatmentionhelper.cpp b/indra/llui/llchatmentionhelper.cpp
index 5745389a58..d7cf60daef 100644
--- a/indra/llui/llchatmentionhelper.cpp
+++ b/indra/llui/llchatmentionhelper.cpp
@@ -39,6 +39,13 @@ bool LLChatMentionHelper::isActive(const LLUICtrl* ctrl) const
bool LLChatMentionHelper::isCursorInNameMention(const LLWString& wtext, S32 cursor_pos, S32* mention_start_pos) const
{
+ // Enable auto-completion of @ mentions
+ static LLUICachedControl useMentionAutoComplete("FSUseChatMentionAutoComplete", true);
+ if (!useMentionAutoComplete)
+ {
+ return false;
+ }
+ //
if (cursor_pos <= 0 || cursor_pos > static_cast(wtext.size()))
return false;
diff --git a/indra/llui/llemojihelper.cpp b/indra/llui/llemojihelper.cpp
index 7d5be5f049..3367eb0f0a 100644
--- a/indra/llui/llemojihelper.cpp
+++ b/indra/llui/llemojihelper.cpp
@@ -58,7 +58,7 @@ bool LLEmojiHelper::isActive(const LLUICtrl* ctrl_p) const
bool LLEmojiHelper::isCursorInEmojiCode(const LLWString& wtext, S32 cursorPos, S32* pShortCodePos)
{
// FIRE-33735: Option to suppress emoji chooser window from automatically popping up while typing in chat bars
- static LLUICachedControl FSEnableEmojiWindowPopupWhileTyping("FSEnableEmojiWindowPopupWhileTyping");
+ static LLUICachedControl FSEnableEmojiWindowPopupWhileTyping("FSEnableEmojiWindowPopupWhileTyping", true);
if (!FSEnableEmojiWindowPopupWhileTyping)
{
return false;
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index 407b57c184..73effa26aa 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -26469,6 +26469,17 @@ Change of this parameter will affect the layout of buttons in notification toast
Value
1
+ FSUseChatMentionAutoComplete
+
FSUseBWEmojis