diff options
author | Merov Linden <merov@lindenlab.com> | 2013-02-08 20:52:32 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-02-08 20:52:32 -0800 |
commit | 22bc40ad60d166cd9e8ff90671a6171a1954cd9b (patch) | |
tree | 6ed30be7eb008fae2d03ba6ac84ab6225c91c344 /indra/newview | |
parent | 2e2026a4f8359aba26e330fc8ec9ce4a3d40e666 (diff) | |
parent | ec6c132e14e5f405bfa65a052b617cc2ace87bda (diff) |
Pull merge from lindenlab/viewer-chui
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llimview.cpp | 13 | ||||
-rw-r--r-- | indra/newview/llpersistentnotificationstorage.cpp | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index d4c8d8c4f4..2eaef48049 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -107,6 +107,7 @@ void process_dnd_im(const LLSD& notification) { LLSD data = notification["substitutions"]; LLUUID sessionID = data["SESSION_ID"].asUUID(); + LLUUID fromID = data["FROM_ID"].asUUID(); //re-create the IM session if needed //(when coming out of DND mode upon app restart) @@ -119,14 +120,22 @@ void process_dnd_im(const LLSD& notification) { name = av_name.getDisplayName(); } - + LLIMModel::getInstance()->newSession(sessionID, name, IM_NOTHING_SPECIAL, - data["FROM_ID"], + fromID, false, false); //will need slight refactor to retrieve whether offline message or not (assume online for now) + + LLFloaterIMContainer* im_box = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container"); + + if (im_box) + { + im_box->flashConversationItemWidget(sessionID, true); + } + } } diff --git a/indra/newview/llpersistentnotificationstorage.cpp b/indra/newview/llpersistentnotificationstorage.cpp index 224aaa2146..11c12e6c10 100644 --- a/indra/newview/llpersistentnotificationstorage.cpp +++ b/indra/newview/llpersistentnotificationstorage.cpp @@ -75,7 +75,7 @@ void LLPersistentNotificationStorage::saveNotifications() continue; } - data.append(notification->asLLSD()); + data.append(notification->asLLSD(true)); } writeNotifications(output); |