From 29e9f792bb9595dbacbc8a4b584b5bf62e7db6c6 Mon Sep 17 00:00:00 2001
From: AlexanderP ProductEngine <apaschenko@productengine.com>
Date: Tue, 13 Nov 2012 21:20:05 +0200
Subject: [PATCH] CHUI-512 FIXED (New incoming conversations take focus in
 message panel only and do not show toasts). Rejected update message when
 floater hasn't focus

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

diff --git a/indra/newview/llfloaterimsession.cpp b/indra/newview/llfloaterimsession.cpp
index 0c622e07c4a..e1dc5b91d09 100644
--- a/indra/newview/llfloaterimsession.cpp
+++ b/indra/newview/llfloaterimsession.cpp
@@ -142,7 +142,7 @@ void LLFloaterIMSession::newIMCallback(const LLSD& data)
 		LLFloaterIMSession* floater = LLFloaterReg::findTypedInstance<LLFloaterIMSession>("impanel", session_id);
 
         // update if visible, otherwise will be updated when opened
-		if (floater && floater->getVisible())
+		if (floater && (floater->getHost()? floater->hasFocus() : floater->getVisible()))
 		{
 			floater->updateMessages();
 		}
-- 
GitLab