Skip to content
Snippets Groups Projects
Commit f52e7036 authored by Igor Borovkov's avatar Igor Borovkov
Browse files

completed EXT-5427 Disable appearance of "i" button for SL system messages in IM and other chats

--HG--
branch : product-engine
parent 73d192a4
No related branches found
No related tags found
No related merge requests found
...@@ -122,7 +122,7 @@ class LLChatHistoryHeader: public LLPanel ...@@ -122,7 +122,7 @@ class LLChatHistoryHeader: public LLPanel
BOOL handleToolTip(S32 x, S32 y, MASK mask) BOOL handleToolTip(S32 x, S32 y, MASK mask)
{ {
LLTextBase* name = getChild<LLTextBase>("user_name"); LLTextBase* name = getChild<LLTextBase>("user_name");
if (name && name->parentPointInView(x, y) && mAvatarID.notNull() && SYSTEM_FROM != mFrom) if (name && name->parentPointInView(x, y) && mAvatarID.notNull() && mFrom.size() && SYSTEM_FROM != mFrom)
{ {
// Spawn at right side of the name textbox. // Spawn at right side of the name textbox.
...@@ -179,12 +179,7 @@ class LLChatHistoryHeader: public LLPanel ...@@ -179,12 +179,7 @@ class LLChatHistoryHeader: public LLPanel
} }
else if (level == "add") else if (level == "add")
{ {
std::string name; LLAvatarActions::requestFriendshipDialog(getAvatarId(), mFrom);
name.assign(getFirstName());
name.append(" ");
name.append(getLastName());
LLAvatarActions::requestFriendshipDialog(getAvatarId(), name);
} }
else if (level == "remove") else if (level == "remove")
{ {
...@@ -253,8 +248,6 @@ class LLChatHistoryHeader: public LLPanel ...@@ -253,8 +248,6 @@ class LLChatHistoryHeader: public LLPanel
} }
const LLUUID& getAvatarId () const { return mAvatarID;} const LLUUID& getAvatarId () const { return mAvatarID;}
const std::string& getFirstName() const { return mFirstName; }
const std::string& getLastName () const { return mLastName; }
void setup(const LLChat& chat,const LLStyle::Params& style_params) void setup(const LLChat& chat,const LLStyle::Params& style_params)
{ {
...@@ -275,9 +268,11 @@ class LLChatHistoryHeader: public LLPanel ...@@ -275,9 +268,11 @@ class LLChatHistoryHeader: public LLPanel
userName->setColor(style_params.color()); userName->setColor(style_params.color());
userName->setValue(chat.mFromName); userName->setValue(chat.mFromName);
mFrom = chat.mFromName;
if (chat.mFromName.empty() || CHAT_SOURCE_SYSTEM == mSourceType) if (chat.mFromName.empty() || CHAT_SOURCE_SYSTEM == mSourceType)
{ {
userName->setValue(LLTrans::getString("SECOND_LIFE")); mFrom = LLTrans::getString("SECOND_LIFE");
userName->setValue(mFrom);
} }
...@@ -337,8 +332,7 @@ class LLChatHistoryHeader: public LLPanel ...@@ -337,8 +332,7 @@ class LLChatHistoryHeader: public LLPanel
{ {
if (id != mAvatarID) if (id != mAvatarID)
return; return;
mFirstName = first; mFrom = first + " " + last;
mLastName = last;
} }
protected: protected:
static const S32 PADDING = 20; static const S32 PADDING = 20;
...@@ -423,8 +417,6 @@ class LLChatHistoryHeader: public LLPanel ...@@ -423,8 +417,6 @@ class LLChatHistoryHeader: public LLPanel
LLUUID mAvatarID; LLUUID mAvatarID;
EChatSourceType mSourceType; EChatSourceType mSourceType;
std::string mFirstName;
std::string mLastName;
std::string mFrom; std::string mFrom;
LLUUID mSessionID; LLUUID mSessionID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment