diff options
author | James Cook <james@lindenlab.com> | 2010-05-28 05:56:56 -0700 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-05-28 05:56:56 -0700 |
commit | 3e4a9614dc6ece19a87f47ec3519dbef01b08d07 (patch) | |
tree | 239d1820d50eea52cd2a808a6391fccc7e50324e /indra/newview | |
parent | 0a5ec5da9c52eeb0475414e67e4ac906c82d05cc (diff) |
DEV-50451 FIX ??? shown in local chat for chat from objects
Simple - was always doing name lookup even if ID was for an object
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llchathistory.cpp | 9 |
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); |