From c713af7c63f3d354152bd84aed43fecd334ebfa4 Mon Sep 17 00:00:00 2001
From: Yuri Chebotarev <ychebotarev@productengine.com>
Date: Wed, 21 Apr 2010 17:38:59 +0300
Subject: [PATCH] fix for EXT-6064 Clicking avatar name in nearby chat toast
 opens nearby chat history instead of avatar profile.
 https://codereview.productengine.com/secondlife/r/287/ reviwed Vadim Savchuk

--HG--
branch : product-engine
---
 indra/newview/llchatitemscontainerctrl.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/indra/newview/llchatitemscontainerctrl.cpp b/indra/newview/llchatitemscontainerctrl.cpp
index aef36b677ca..6ee14e8ba9b 100644
--- a/indra/newview/llchatitemscontainerctrl.cpp
+++ b/indra/newview/llchatitemscontainerctrl.cpp
@@ -44,6 +44,8 @@
 #include "llviewercontrol.h"
 #include "llagentdata.h"
 
+#include "llslurl.h"
+
 static const S32 msg_left_offset = 10;
 static const S32 msg_right_offset = 10;
 static const S32 msg_height_pad = 5;
@@ -190,6 +192,8 @@ void LLNearbyChatToastPanel::init(LLSD& notification)
 			style_params_name.font.name(font_name);
 			style_params_name.font.size(font_style_size);
 
+			style_params_name.link_href = LLSLURL::buildCommand("agent",mFromID,"about");
+
 			msg_text->appendText(str_sender, FALSE, style_params_name);
 
 		}
-- 
GitLab