summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2010-03-05 12:37:06 +0200
committerAlexei Arabadji <aarabadji@productengine.com>2010-03-05 12:37:06 +0200
commit462ab1c7523b1cc0987bc596df4fd3e4b32e5e54 (patch)
tree6c3a8d9b252b77d16ad77e192a060e3cc03322f4
parent66b60a71f1af684ed04882fff519f967c4d455f1 (diff)
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
-rw-r--r--indra/newview/llchiclet.cpp1
-rw-r--r--indra/newview/llnotificationhandlerutil.cpp1
-rw-r--r--indra/newview/llnotificationofferhandler.cpp8
3 files changed, 7 insertions, 3 deletions
diff --git a/indra/newview/llchiclet.cpp b/indra/newview/llchiclet.cpp
index c39c1a2056..8efa814a2e 100644
--- a/indra/newview/llchiclet.cpp
+++ b/indra/newview/llchiclet.cpp
@@ -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.
diff --git a/indra/newview/llnotificationhandlerutil.cpp b/indra/newview/llnotificationhandlerutil.cpp
index 565016e63c..11f210be93 100644
--- a/indra/newview/llnotificationhandlerutil.cpp
+++ b/indra/newview/llnotificationhandlerutil.cpp
@@ -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()
diff --git a/indra/newview/llnotificationofferhandler.cpp b/indra/newview/llnotificationofferhandler.cpp
index 42e42d4f0a..3304d7f030 100644
--- a/indra/newview/llnotificationofferhandler.cpp
+++ b/indra/newview/llnotificationofferhandler.cpp
@@ -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))