Skip to content
Snippets Groups Projects
Commit a0244eb6 authored by mberezhnoy's avatar mberezhnoy
Browse files

MAINT-3073 ([CHUIBUG](You) feature is irritating, especially for emotes)

parent f37023a0
No related branches found
No related tags found
No related merge requests found
...@@ -898,20 +898,10 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL ...@@ -898,20 +898,10 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
LLStyle::Params link_params(body_message_params); LLStyle::Params link_params(body_message_params);
link_params.overwriteFrom(LLStyleMap::instance().lookupAgent(chat.mFromID)); link_params.overwriteFrom(LLStyleMap::instance().lookupAgent(chat.mFromID));
if (from_me)
{ std::string localized_name;
bool is_localized = LLTrans::findString(localized_name, "AgentNameSubst");
mEditor->appendText((is_localized? localized_name:"(You)") + delimiter,
prependNewLineState, link_params);
prependNewLineState = false;
}
else
{
// Add link to avatar's inspector and delimiter to message. // Add link to avatar's inspector and delimiter to message.
mEditor->appendText(std::string(link_params.link_href) + delimiter, mEditor->appendText(std::string(link_params.link_href) + delimiter,
prependNewLineState, link_params); prependNewLineState, link_params);
prependNewLineState = false; prependNewLineState = false;
}
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment