Feature Request: Add Profile button to friendship offer notices
This commit is contained in:
@@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include "llanimationstates.h"
|
#include "llanimationstates.h"
|
||||||
#include "llaudioengine.h"
|
#include "llaudioengine.h"
|
||||||
|
#include "llavataractions.h"
|
||||||
#include "llavatarnamecache.h"
|
#include "llavatarnamecache.h"
|
||||||
#include "../lscript/lscript_byteformat.h" //Need LSCRIPTRunTimePermissionBits and SCRIPT_PERMISSION_*
|
#include "../lscript/lscript_byteformat.h" //Need LSCRIPTRunTimePermissionBits and SCRIPT_PERMISSION_*
|
||||||
#include "lleconomy.h"
|
#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->addUUIDFast(_PREHASH_TransactionID, payload["session_id"]);
|
||||||
msg->sendReliable(LLHost(payload["sender"].asString()));
|
msg->sendReliable(LLHost(payload["sender"].asString()));
|
||||||
break;
|
break;
|
||||||
|
case 3:
|
||||||
|
// profile
|
||||||
|
LLAvatarActions::showProfile(payload["from_id"]);
|
||||||
|
LLNotificationsUtil::add(notification["name"], notification["substitutions"], payload); //Respawn!
|
||||||
default:
|
default:
|
||||||
// close button probably, possibly timed out
|
// close button probably, possibly timed out
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -6741,6 +6741,7 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ
|
|||||||
index="2"
|
index="2"
|
||||||
name="Ignore"
|
name="Ignore"
|
||||||
text="Ignore"/>
|
text="Ignore"/>
|
||||||
|
<button index="3" name="Profile" text="Profile"/>
|
||||||
</form>
|
</form>
|
||||||
</notification>
|
</notification>
|
||||||
|
|
||||||
@@ -6771,6 +6772,7 @@ An object named [OBJECTFROMNAME] owned by (an unknown user) has given you a [OBJ
|
|||||||
index="2"
|
index="2"
|
||||||
name="Ignore"
|
name="Ignore"
|
||||||
text="Ignore"/>
|
text="Ignore"/>
|
||||||
|
<button index="3" name="Profile" text="Profile"/>
|
||||||
</form>
|
</form>
|
||||||
</notification>
|
</notification>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user