diff options
author | Cho <cho@lindenlab.com> | 2013-02-22 20:54:58 +0000 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2013-02-22 20:54:58 +0000 |
commit | 6185c16a0af02c90625dec71119d12dec07bb056 (patch) | |
tree | f1033106df8344a06dd3522761698ba710fee6f3 /indra/newview/llconversationview.cpp | |
parent | 5284da1acee1c92f2d465088cee7488d5de2c8b3 (diff) |
CHUI-772 FIX User sees no notification of conversation activity not visible in long scrolling conversation list
Added LLFLoaterIMContainer::isConversationItemWidgetvisible() which is now used in LLConversationViewSession::startFlashing() to flash chat toolbar button if out of view
Diffstat (limited to 'indra/newview/llconversationview.cpp')
-rwxr-xr-x | indra/newview/llconversationview.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 441de2e1a5..850668388f 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -39,6 +39,7 @@ #include "llfloaterreg.h" #include "llgroupiconctrl.h" #include "lluictrlfactory.h" +#include "lltoolbarview.h" // // Implementation of conversations list session widgets @@ -114,6 +115,17 @@ void LLConversationViewSession::startFlashing() { mFlashStarted = true; mFlashTimer->startFlashing(); + + // get session id + LLConversationItem* vmi = dynamic_cast<LLConversationItem*>(getViewModelItem()); + if (vmi) + { + // flash chat toolbar button if scrolled out of view (because flashing will not be visible) + if (!mContainer->isConversationItemWidgetVisible(vmi->getUUID())) + { + gToolBarView->flashCommand(LLCommandId("chat"), true); + } + } } } |