diff options
author | Oz Linden <oz@lindenlab.com> | 2010-10-19 16:47:05 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2010-10-19 16:47:05 -0400 |
commit | 6691bf637e71f40d1bf12065c7caaf96bd9aaf50 (patch) | |
tree | 554b6fbe0bd754f6fc10ee858a66232773c0fb6c /indra/newview/llimview.cpp | |
parent | c1c087b508813ed0a07693decbab82e1cf3403ed (diff) | |
parent | 2a869d52f189a31c185b93f6425dd3e3dd8e927f (diff) |
Automated merge with file:///Users/oz/Work/viewer-development
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r-- | indra/newview/llimview.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index c865dcf9a3..286231523a 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -131,6 +131,20 @@ void toast_callback(const LLSD& msg){ return; } + // *NOTE Skip toasting if the user disable it in preferences/debug settings ~Alexandrea + LLIMModel::LLIMSession* session = LLIMModel::instance().findIMSession( + msg["session_id"]); + if (gSavedSettings.getBOOL("DisableGroupToast") + && session->isGroupSessionType()) + { + return; + } + if (gSavedSettings.getBOOL("DisableIMToast") + && !session->isGroupSessionType()) + { + return; + } + // Skip toasting if we have open window of IM with this session id LLIMFloater* open_im_floater = LLIMFloater::findInstance(msg["session_id"]); if (open_im_floater && open_im_floater->getVisible()) |