Feature Request: Add Profile button to friendship offer notices

This commit is contained in:
Lirusaito
2013-07-16 17:34:36 -04:00
parent fb22cfc6db
commit c89a245323
2 changed files with 7 additions and 0 deletions

View File

@@ -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;

View File

@@ -6741,6 +6741,7 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ
index="2"
name="Ignore"
text="Ignore"/>
<button index="3" name="Profile" text="Profile"/>
</form>
</notification>
@@ -6771,6 +6772,7 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ
index="2"
name="Ignore"
text="Ignore"/>
<button index="3" name="Profile" text="Profile"/>
</form>
</notification>