From 33d91c0a396632d55f0b322f10d1594ee2990e1d Mon Sep 17 00:00:00 2001 From: Igor Borovkov Date: Fri, 11 Jun 2010 19:21:26 +0300 Subject: EXT-7137 FIXED nearby chat messages coming from non-null id with from name "Second Life" are no longer considered "system messages" Messages coming from objects named "Second Life" were mistaken for messages coming from system under the name "Second Life". It is impossible to distinguish using the from_id and from_name two cases: - messages coming from system under the name "Second Life" but under the id of an object - messages comding from object named "Second Life" Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/556/ --HG-- branch : product-engine --- indra/newview/llchathistory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra') diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 961969a5c5..18c69b5130 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -243,7 +243,7 @@ public: gCacheName->get(mAvatarID, FALSE, boost::bind(&LLChatHistoryHeader::nameUpdatedCallback, this, _1, _2, _3, _4)); //*TODO overly defensive thing, source type should be maintained out there - if((chat.mFromID.isNull() && chat.mFromName.empty()) || chat.mFromName == SYSTEM_FROM) + if((chat.mFromID.isNull() && chat.mFromName.empty()) || chat.mFromName == SYSTEM_FROM && chat.mFromID.isNull()) { mSourceType = CHAT_SOURCE_SYSTEM; } -- cgit v1.2.3