From c89a24532318eba5362f4f1754eb5ed2ffe72592 Mon Sep 17 00:00:00 2001 From: Lirusaito Date: Tue, 16 Jul 2013 17:34:36 -0400 Subject: [PATCH] Feature Request: Add Profile button to friendship offer notices --- indra/newview/llviewermessage.cpp | 5 +++++ indra/newview/skins/default/xui/en-us/notifications.xml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index b55f28c82..e74c9b346 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -36,6 +36,7 @@ #include "llanimationstates.h" #include "llaudioengine.h" +#include "llavataractions.h" #include "llavatarnamecache.h" #include "../lscript/lscript_byteformat.h" //Need LSCRIPTRunTimePermissionBits and SCRIPT_PERMISSION_* #include "lleconomy.h" @@ -244,6 +245,10 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response) msg->addUUIDFast(_PREHASH_TransactionID, payload["session_id"]); msg->sendReliable(LLHost(payload["sender"].asString())); break; + case 3: + // profile + LLAvatarActions::showProfile(payload["from_id"]); + LLNotificationsUtil::add(notification["name"], notification["substitutions"], payload); //Respawn! default: // close button probably, possibly timed out break; diff --git a/indra/newview/skins/default/xui/en-us/notifications.xml b/indra/newview/skins/default/xui/en-us/notifications.xml index ad9730e5a..e2603c86a 100644 --- a/indra/newview/skins/default/xui/en-us/notifications.xml +++ b/indra/newview/skins/default/xui/en-us/notifications.xml @@ -6741,6 +6741,7 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ index="2" name="Ignore" text="Ignore"/> +