fixed normal EXT-1131 Message Well counts non-interactive notifications however chiclet-window is opened

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2009-11-03 14:25:08 +02:00
parent 645e258851
commit 24179cbcc6
1 changed files with 9 additions and 1 deletions

View File

@ -830,13 +830,21 @@ LLChicletPanel::~LLChicletPanel()
void im_chiclet_callback(LLChicletPanel* panel, const LLSD& data){
LLUUID session_id = data["session_id"].asUUID();
S32 unread = data["num_unread"].asInteger();
LLIMFloater* im_floater = LLIMFloater::findInstance(session_id);
if (im_floater && im_floater->getVisible())
{
unread = 0;
}
std::list<LLChiclet*> chiclets = LLIMChiclet::sFindChicletsSignal(session_id);
std::list<LLChiclet *>::iterator iter;
for (iter = chiclets.begin(); iter != chiclets.end(); iter++) {
LLChiclet* chiclet = *iter;
if (chiclet != NULL)
{
chiclet->setCounter(data["num_unread"].asInteger());
chiclet->setCounter(unread);
}
else
{