diff options
| author | Igor Borovkov <iborovkov@productengine.com> | 2009-10-26 18:05:00 +0200 | 
|---|---|---|
| committer | Igor Borovkov <iborovkov@productengine.com> | 2009-10-26 18:05:00 +0200 | 
| commit | e874fbc8f052e3a7a16d4b4d61a35a4c49dab1cd (patch) | |
| tree | c0dc0d3b5cc7e6dee3512daaeba65f22422879fd /indra | |
| parent | 5892411348cdc5ff107caa525570ee0db3ac34f6 (diff) | |
IM: got rid of old im floater dependency in LLIMMgr::addMessage(...)
--HG--
branch : product-engine
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llimview.cpp | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 7414ebbbad..59cd9cec86 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -1258,7 +1258,8 @@ void LLIMMgr::addMessage(  		fixed_session_name = session_name;  	} -	if (!LLIMModel::getInstance()->findIMSession(new_session_id)) +	bool new_session = !hasSession(session_id); +	if (new_session)  	{  		LLIMModel::getInstance()->newSession(session_id, fixed_session_name, dialog, other_participant_id);  	} @@ -1277,15 +1278,16 @@ void LLIMMgr::addMessage(  	// create IM window as necessary  	if(!floater)  	{ - -		  		floater = createFloater(  			new_session_id,  			other_participant_id,  			fixed_session_name,  			dialog,  			FALSE); +	} +	if (new_session) +	{  		// When we get a new IM, and if you are a god, display a bit  		// of information about the source. This is to help liaisons  		// when answering questions. @@ -1295,7 +1297,7 @@ void LLIMMgr::addMessage(  			std::ostringstream bonus_info;  			bonus_info << LLTrans::getString("***")+ " "+ LLTrans::getString("IMParentEstate") + ":" + " "  				<< parent_estate_id -			<< ((parent_estate_id == 1) ? "," + LLTrans::getString("IMMainland") : "") +				<< ((parent_estate_id == 1) ? "," + LLTrans::getString("IMMainland") : "")  				<< ((parent_estate_id == 5) ? "," + LLTrans::getString ("IMTeen") : "");  			// once we have web-services (or something) which returns | 
