fixed EXT-5908 “Accepted friendship notification shouldn't spawn chiclet”,

made not spawn IM chiclet friendship accepted notification;
added friendship accepted notification to syswell chiclet;

--HG--
branch : product-engine
master
Alexei Arabadji 2010-03-05 12:37:06 +02:00
parent 66b60a71f1
commit 462ab1c752
3 changed files with 7 additions and 3 deletions

View File

@ -320,6 +320,7 @@ LLNotificationChiclet::LLNotificationChiclet(const Params& p)
// connect counter handlers to the signals
connectCounterUpdatersToSignal("notify");
connectCounterUpdatersToSignal("groupnotify");
connectCounterUpdatersToSignal("offer");
// ensure that notification well window exists, to synchronously
// handle toast add/delete events.

View File

@ -163,7 +163,6 @@ bool LLHandlerUtil::canLogToNearbyChat(const LLNotificationPtr& notification)
bool LLHandlerUtil::canSpawnIMSession(const LLNotificationPtr& notification)
{
return OFFER_FRIENDSHIP == notification->getName()
|| FRIENDSHIP_ACCEPTED == notification->getName()
|| USER_GIVE_ITEM == notification->getName()
|| INVENTORY_ACCEPTED == notification->getName()
|| INVENTORY_DECLINED == notification->getName()

View File

@ -146,8 +146,12 @@ bool LLOfferHandler::processNotification(const LLSD& notify)
if(channel)
channel->addToast(p);
// send a signal to the counter manager
mNewNotificationSignal();
// if we not add notification to IM - add it to notification well
if (!add_notid_to_im)
{
// send a signal to the counter manager
mNewNotificationSignal();
}
}
if (LLHandlerUtil::canLogToIM(notification))