summaryrefslogtreecommitdiff
path: root/indra/newview/llnotificationtiphandler.cpp
diff options
context:
space:
mode:
authorAlexei Arabadji <aarabadji@productengine.com>2009-12-25 16:41:06 +0200
committerAlexei Arabadji <aarabadji@productengine.com>2009-12-25 16:41:06 +0200
commit40d89ae418be2c43903955f1ee4dfbf05e38576c (patch)
treea3f0c95567b4a633d1ff2411c1d035d46bdb59cd /indra/newview/llnotificationtiphandler.cpp
parent5d5d9ee7fa6a5bbe0b4573088c9e79e33e299999 (diff)
fixed EXT-700 “"Offer" notifications should be accessible via chiclet”
made inventory and teleport offers spawn chiclet; made 'inventory accepted' toast as notytip; --HG-- branch : product-engine
Diffstat (limited to 'indra/newview/llnotificationtiphandler.cpp')
-rw-r--r--indra/newview/llnotificationtiphandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llnotificationtiphandler.cpp b/indra/newview/llnotificationtiphandler.cpp
index 9afaddae82..83a2215ac6 100644
--- a/indra/newview/llnotificationtiphandler.cpp
+++ b/indra/newview/llnotificationtiphandler.cpp
@@ -101,6 +101,19 @@ bool LLTipHandler::processNotification(const LLSD& notify)
}
}
+ const std::string name = notification->getSubstitutions()["NAME"];
+ LLUUID from_id = notification->getPayload()["from_id"];
+ if (LLHandlerUtil::canLogToIM(notification))
+ {
+ LLHandlerUtil::logToIM(IM_NOTHING_SPECIAL, name, name,
+ notification->getMessage(), from_id, from_id);
+ }
+
+ if (LLHandlerUtil::canSpawnIMSession(notification))
+ {
+ LLHandlerUtil::spawnIMSession(name, from_id);
+ }
+
LLToastNotifyPanel* notify_box = new LLToastNotifyPanel(notification);
LLToast::Params p;