diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index a835cb6cab..ae3c99cec8 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -20829,5 +20829,16 @@ Change of this parameter will affect the layout of buttons in notification toast Value 0 + FSOpenIMContainerOnOfflineMessage + + Comment + Open the IM container at login when an offline message is present. + Persist + 1 + Type + Boolean + Value + 0 + diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 8f79b09ce5..cee920cfbc 100755 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -54,6 +54,7 @@ //#include "llfloaterimsession.h" //#include "llfloaterimcontainer.h" #include "fsfloaterim.h" +#include "fsfloaterimcontainer.h" // [FS communication UI] #include "llgroupiconctrl.h" #include "llmd5.h" @@ -3052,14 +3053,16 @@ void LLIMMgr::addMessage( } // Open conversation floater if offline messages are present - // [FS communication UI] + // Only open it when the user opts to do so... //if (is_offline_msg) - // { - // LLFloaterReg::showInstance("im_container"); + if (is_offline_msg && gSavedSettings.getBOOL("FSOpenIMContainerOnOfflineMessage")) + { + // LLFloaterReg::showInstance("im_container"); // LLFloaterReg::getTypedInstance("im_container")-> // flashConversationItemWidget(new_session_id, true); - // } - // [FS communication UI] + LLFloaterReg::showInstance("fs_im_container"); + // + } } void LLIMMgr::addSystemMessage(const LLUUID& session_id, const std::string& message_name, const LLSD& args) diff --git a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml index 9942200cd8..710f8c5821 100755 --- a/indra/newview/skins/default/xui/en/panel_preferences_chat.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_chat.xml @@ -555,6 +555,15 @@ left="30" width="400" height="18" + name="FSOpenIMContainerOnOfflineMessage" + control_name="FSOpenIMContainerOnOfflineMessage" + label="Open Conversations when an offline message has been received"/> +