summaryrefslogtreecommitdiff
path: root/indra/newview/llimview.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2010-10-19 16:47:05 -0400
committerOz Linden <oz@lindenlab.com>2010-10-19 16:47:05 -0400
commit6691bf637e71f40d1bf12065c7caaf96bd9aaf50 (patch)
tree554b6fbe0bd754f6fc10ee858a66232773c0fb6c /indra/newview/llimview.cpp
parentc1c087b508813ed0a07693decbab82e1cf3403ed (diff)
parent2a869d52f189a31c185b93f6425dd3e3dd8e927f (diff)
Automated merge with file:///Users/oz/Work/viewer-development
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r--indra/newview/llimview.cpp14
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())