diff options
| author | Merov Linden <merov@lindenlab.com> | 2013-01-09 19:12:49 -0800 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2013-01-09 19:12:49 -0800 |
| commit | 830972204912ccb212da3550f31820a6cf343779 (patch) | |
| tree | 9d5e2cb9bfba9daa4d455e8b9f9c4b014e84529e /indra/newview/llimview.cpp | |
| parent | 60eaa8875df45f023c3bf0fb82863b05cb5a090f (diff) | |
| parent | 41d5f820ea1859493b7f14d9d81b145a6a3b38b6 (diff) | |
Pull merge from richard/viewer-chui
Diffstat (limited to 'indra/newview/llimview.cpp')
| -rw-r--r-- | indra/newview/llimview.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 0011f54175..067f0d1993 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -129,11 +129,7 @@ void process_dnd_im(const LLSD& notification) false); //will need slight refactor to retrieve whether offline message or not (assume online for now) } - //For now always flash conversation line item - LLFloaterIMContainer* im_box = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container"); - im_box->flashConversationItemWidget(sessionID, true); - - //And flash toolbar button + //Flash toolbar button for now, eventually the user's preference will be taken into account gToolBarView->flashCommand(LLCommandId("chat"), true); } @@ -225,12 +221,18 @@ void on_new_message(const LLSD& msg) //User is not focused on conversation containing the message if(session_floater_not_focused) { - im_box->flashConversationItemWidget(session_id, true); - + if(!LLMuteList::getInstance()->isMuted(participant_id)) + { + im_box->flashConversationItemWidget(session_id, true); + } //The conversation floater isn't focused/open if(conversation_floater_not_focused) { - gToolBarView->flashCommand(LLCommandId("chat"), true); + if(!LLMuteList::getInstance()->isMuted(participant_id) + && !gAgent.isDoNotDisturb()) + { + gToolBarView->flashCommand(LLCommandId("chat"), true); + } //Show IM toasts (upper right toasts) // Skip toasting for system messages and for nearby chat |
