From 16f5a67e6550c2041b69b5c8523ad9884d7110f1 Mon Sep 17 00:00:00 2001
From: maksymsproductengine <maksymsproductengine@lindenlab.com>
Date: Thu, 15 Nov 2012 23:35:14 +0200
Subject: [PATCH] CHUI-442 FIXED Nearby chat does not open conversations
 floater when clicking first nearby chat toast in a session

---
 indra/newview/llfloaterimsessiontab.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp
index 3a1cc2880a7..da77ca0079a 100644
--- a/indra/newview/llfloaterimsessiontab.cpp
+++ b/indra/newview/llfloaterimsessiontab.cpp
@@ -165,6 +165,11 @@ void LLFloaterIMSessionTab::addToHost(const LLUUID& session_id)
 					|| gSavedSettings.getBOOL("NearbyChatIsNotTornOff"))
 			{
 				floater_container->addFloater(conversp, TRUE, LLTabContainer::END);
+
+				if (!floater_container->getVisible())
+				{
+					LLFloaterReg::toggleInstanceOrBringToFront("im_container");			
+				}
 			}
 			else
 			{
-- 
GitLab