SL-18119 - logCommand() for friend operations
parent
56e1db9c15
commit
9c903e7fa8
|
|
@ -78,6 +78,7 @@
|
|||
#include "llsidepanelinventory.h"
|
||||
#include "llavatarname.h"
|
||||
#include "llagentui.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
// Flags for kick message
|
||||
const U32 KICK_FLAGS_DEFAULT = 0x0;
|
||||
|
|
@ -113,7 +114,7 @@ void LLAvatarActions::requestFriendshipDialog(const LLUUID& id, const std::strin
|
|||
payload["id"] = id;
|
||||
payload["name"] = name;
|
||||
|
||||
LLNotificationsUtil::add("AddFriendWithMessage", args, payload, &callbackAddFriendWithMessage);
|
||||
LLNotificationsUtil::add("AddFriendWithMessage", args, payload, &callbackAddFriendWithMessage);
|
||||
|
||||
// add friend to recent people list
|
||||
LLRecentPeople::instance().add(id);
|
||||
|
|
@ -1418,6 +1419,8 @@ bool LLAvatarActions::handleUnfreeze(const LLSD& notification, const LLSD& respo
|
|||
void LLAvatarActions::requestFriendship(const LLUUID& target_id, const std::string& target_name, const std::string& message)
|
||||
{
|
||||
const LLUUID calling_card_folder_id = gInventory.findCategoryUUIDForType(LLFolderType::FT_CALLINGCARD);
|
||||
LLUIUsage::instance().logCommand("Avatar.SendFriendRequest");
|
||||
|
||||
send_improved_im(target_id,
|
||||
target_name,
|
||||
message,
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
#include "llviewerobjectlist.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "llavataractions.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Local function declarations, constants, enums, and typedefs
|
||||
|
|
@ -294,6 +295,8 @@ void LLAvatarTracker::copyBuddyList(buddy_map_t& buddies) const
|
|||
void LLAvatarTracker::terminateBuddy(const LLUUID& id)
|
||||
{
|
||||
LL_DEBUGS() << "LLAvatarTracker::terminateBuddy()" << LL_ENDL;
|
||||
LLUIUsage::instance().logCommand("Avatar.TerminateFriendship");
|
||||
|
||||
LLRelationship* buddy = get_ptr_in_map(mBuddyInfo, id);
|
||||
if(!buddy) return;
|
||||
mBuddyInfo.erase(id);
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@
|
|||
#include "llviewerregion.h"
|
||||
#include <boost/regex.hpp>
|
||||
#include "llcorehttputil.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
|
||||
#if LL_MSVC
|
||||
|
|
@ -1859,6 +1860,9 @@ void LLGroupMgr::sendGroupRoleMemberChanges(const LLUUID& group_id)
|
|||
//static
|
||||
void LLGroupMgr::sendGroupMemberJoin(const LLUUID& group_id)
|
||||
{
|
||||
|
||||
LLUIUsage::instance().logCommand("Group.Join");
|
||||
|
||||
LLMessageSystem *msg = gMessageSystem;
|
||||
|
||||
msg->newMessageFast(_PREHASH_JoinGroupRequest);
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@
|
|||
#include "llexperiencecache.h"
|
||||
|
||||
#include "llexperiencecache.h"
|
||||
#include "lluiusage.h"
|
||||
|
||||
extern void on_new_message(const LLSD& msg);
|
||||
|
||||
|
|
@ -261,6 +262,7 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response)
|
|||
{
|
||||
case 0:
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Avatar.AcceptFriendship");
|
||||
// accept
|
||||
LLAvatarTracker::formFriendship(payload["from_id"]);
|
||||
|
||||
|
|
@ -303,6 +305,7 @@ bool friendship_offer_callback(const LLSD& notification, const LLSD& response)
|
|||
// fall-through
|
||||
case 2: // Send IM - decline and start IM session
|
||||
{
|
||||
LLUIUsage::instance().logCommand("Avatar.DeclineFriendship");
|
||||
// decline
|
||||
// We no longer notify other viewers, but we DO still send
|
||||
// the rejection to the simulator to delete the pending userop.
|
||||
|
|
|
|||
Loading…
Reference in New Issue