summaryrefslogtreecommitdiff
path: root/indra/newview/llchathistory.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-05-28 13:30:55 -0700
committerLeyla Farazha <leyla@lindenlab.com>2010-05-28 13:30:55 -0700
commit66fe983cb22a7916d46e2df087ce3aade345cdc8 (patch)
treef8e121709c3e243b0b749b7a24baa540f1ec1798 /indra/newview/llchathistory.cpp
parent5be933062b0e8dfe6955480b333450a32a444a33 (diff)
parentb944a4792762bf61b7837a29c8580c9823c9670b (diff)
Merge
Diffstat (limited to 'indra/newview/llchathistory.cpp')
-rw-r--r--indra/newview/llchathistory.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index d3686ab99c..5323ecce72 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -274,7 +274,7 @@ public:
user_name->setValue(mFrom);
updateMinUserNameWidth();
}
- else
+ else if (mSourceType == CHAT_SOURCE_AGENT)
{
// ...from a normal user, lookup the name and fill in later,
// but start with blank so sample data from XUI XML doesn't
@@ -283,6 +283,13 @@ public:
LLAvatarNameCache::get(mAvatarID,
boost::bind(&LLChatHistoryHeader::onAvatarNameCache, this, _1, _2));
}
+ else {
+ // ...from an object, just use name as given
+ mFrom = chat.mFromName;
+ user_name->setValue(mFrom);
+ updateMinUserNameWidth();
+ }
+
setTimeField(chat);