From 3be738dc6cd46bc7666403178f1ae61a26c67f83 Mon Sep 17 00:00:00 2001
From: Mnikolenko ProductEngine <mnikolenko@productengine.com>
Date: Tue, 31 Mar 2015 12:40:43 +0300
Subject: [PATCH] MAINT-5020 FIXED Determine the need to use bracket via chat
 source.

---
 indra/newview/llchathistory.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index f0bd63ba468..b81b95462e3 100755
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -934,7 +934,7 @@ void LLChatHistory::appendMessage(const LLChat& chat, const LLSD &args, const LL
 	// compact mode: show a timestamp and name
 	if (use_plain_text_chat_history)
 	{
-		square_brackets = chat.mFromName == SYSTEM_FROM;
+		square_brackets = chat.mSourceType == CHAT_SOURCE_SYSTEM;
 
 		LLStyle::Params timestamp_style(body_message_params);
 
-- 
GitLab