diff options
author | Mike Antipov <mantipov@productengine.com> | 2009-12-26 13:25:22 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2009-12-26 13:25:22 +0200 |
commit | 4c4c78872898bc7a8fdbc5f403b667a0c7896719 (patch) | |
tree | fd85b0a36829153e62d7f9c463fe47145b48746b /indra/newview/llnotificationalerthandler.cpp | |
parent | 18e3fd3e0a765309039571d9dc12a68590cfbf75 (diff) |
Fixed normal bug EXT-3643 (Make Friend Offer dialog a modal alert)
-- made dialog a modal alert
-- logging to IM is left as it was
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llnotificationalerthandler.cpp')
-rw-r--r-- | indra/newview/llnotificationalerthandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llnotificationalerthandler.cpp b/indra/newview/llnotificationalerthandler.cpp index c3df4cbaf4..52de8355e9 100644 --- a/indra/newview/llnotificationalerthandler.cpp +++ b/indra/newview/llnotificationalerthandler.cpp @@ -93,6 +93,19 @@ bool LLAlertHandler::processNotification(const LLSD& notify) if (notify["sigtype"].asString() == "add" || notify["sigtype"].asString() == "load") { + if (LLHandlerUtil::canSpawnSessionAndLogToIM(notification)) + { + const std::string name = LLHandlerUtil::getSubstitutionName(notification); + + LLUUID from_id = notification->getPayload()["from_id"]; + + // firstly create session... + LLHandlerUtil::spawnIMSession(name, from_id); + + // ...then log message to have IM Well notified about new message + LLHandlerUtil::logToIMP2P(notification); + } + LLToastAlertPanel* alert_dialog = new LLToastAlertPanel(notification, mIsModal); LLToast::Params p; p.notif_id = notification->getID(); |