From e71e30aea05048bb2e896a4e277cb76f3fcd5ca8 Mon Sep 17 00:00:00 2001
From: MaximB ProductEngine <mberezhnoy@productengine.com>
Date: Tue, 1 Oct 2013 11:06:44 +0300
Subject: [PATCH] MAINT-3174 (When resident is sharing some item with you,
 there is no context menu in IM   conversation.)

---
 indra/newview/lltoastnotifypanel.cpp | 2 ++
 indra/newview/llviewertexteditor.cpp | 5 +++++
 indra/newview/llviewertexteditor.h   | 2 ++
 3 files changed, 9 insertions(+)

diff --git a/indra/newview/lltoastnotifypanel.cpp b/indra/newview/lltoastnotifypanel.cpp
index 3a41bf28b47..7d486343815 100755
--- a/indra/newview/lltoastnotifypanel.cpp
+++ b/indra/newview/lltoastnotifypanel.cpp
@@ -41,6 +41,7 @@
 #include "llnotificationsutil.h"
 #include "llviewermessage.h"
 #include "llfloaterimsession.h"
+#include "llavataractions.h"
 
 const S32 BOTTOM_PAD = VPAD * 3;
 const S32 IGNORE_BTN_TOP_DELTA = 3*VPAD;//additional ignore_btn padding
@@ -313,6 +314,7 @@ void LLToastNotifyPanel::init( LLRect rect, bool show_images )
     mTextBox->setVisible(TRUE);
     mTextBox->setPlainText(!show_images);
     mTextBox->setValue(mNotification->getMessage());
+	mTextBox->setIsFriendCallback(LLAvatarActions::isFriend);
 
     // add buttons for a script notification
     if (mIsTip)
diff --git a/indra/newview/llviewertexteditor.cpp b/indra/newview/llviewertexteditor.cpp
index 8036a4e2585..e51f7b2c714 100755
--- a/indra/newview/llviewertexteditor.cpp
+++ b/indra/newview/llviewertexteditor.cpp
@@ -689,6 +689,11 @@ void LLViewerTextEditor::makePristine()
 	LLTextEditor::makePristine();
 }
 
+void LLViewerTextEditor::handleVisibilityChange( BOOL new_visibility )
+{
+	LLUICtrl::handleVisibilityChange(new_visibility);
+}
+
 BOOL LLViewerTextEditor::handleMouseDown(S32 x, S32 y, MASK mask)
 {
 	BOOL	handled = FALSE;
diff --git a/indra/newview/llviewertexteditor.h b/indra/newview/llviewertexteditor.h
index fb428d0dc14..33b78a59641 100755
--- a/indra/newview/llviewertexteditor.h
+++ b/indra/newview/llviewertexteditor.h
@@ -46,6 +46,8 @@ class LLViewerTextEditor : public LLTextEditor
 	virtual ~LLViewerTextEditor();
 
 	virtual void makePristine();
+
+	/*virtual*/ void handleVisibilityChange( BOOL new_visibility );
 	
 	// mousehandler overrides
 	virtual BOOL	handleMouseDown(S32 x, S32 y, MASK mask);
-- 
GitLab