diff --git a/indra/newview/llfloaterimnearbychathandler.cpp b/indra/newview/llfloaterimnearbychathandler.cpp index 6b43580ba7a64378b697c924cadc87a660aeb6e6..c27d80c90a035c37a835b342f1b519bc587cca12 100644 --- a/indra/newview/llfloaterimnearbychathandler.cpp +++ b/indra/newview/llfloaterimnearbychathandler.cpp @@ -679,7 +679,8 @@ void LLFloaterIMNearbyChatHandler::processChat(const LLChat& chat_msg, //} //Will show toast when chat preference is set - if((gSavedSettings.getString("NotificationNearbyChatOptions") == "toast") || !nearby_chat->isMessagePanelVisible()) + static LLCachedControl<bool> sChatInWindow(gSavedSettings, "AlchemyNearbyChatInput", true); + if((gSavedSettings.getString("NotificationNearbyChatOptions") == "toast") || (sChatInWindow)) { // Add a nearby chat toast. LLUUID id;