viewer#1309 Handle deprecated avatar properties messages
since server still sends those in some casesmaster
parent
1bcc4e7f70
commit
bc29431ab2
|
|
@ -405,6 +405,18 @@ void LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply(LLMessageSy
|
|||
self->notifyObservers(avatar_data.avatar_id, &avatar_data, APT_PROPERTIES_LEGACY);
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarInterestsReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
/*
|
||||
AvatarInterestsReply is automatically sent by the server in response to the
|
||||
AvatarPropertiesRequest (in addition to the AvatarPropertiesReply message).
|
||||
If the interests panel is no longer part of the design (?) we should just register the message
|
||||
to a handler function that does nothing.
|
||||
That will suppress the warnings and be compatible with old server versions.
|
||||
WARNING: LLTemplateMessageReader::decodeData: Message from 216.82.37.237:13000 with no handler function received: AvatarInterestsReply
|
||||
*/
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarClassifiedsReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
LLAvatarClassifieds classifieds;
|
||||
|
|
@ -458,6 +470,22 @@ void LLAvatarPropertiesProcessor::processClassifiedInfoReply(LLMessageSystem* ms
|
|||
self->notifyObservers(c_info.creator_id, &c_info, APT_CLASSIFIED_INFO);
|
||||
}
|
||||
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarNotesReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
// Deprecated, new "AgentProfile" allows larger notes
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarPicksReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
LLUUID agent_id;
|
||||
LLUUID target_id;
|
||||
msg->getUUID(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);
|
||||
msg->getUUID(_PREHASH_AgentData, _PREHASH_TargetID, target_id);
|
||||
|
||||
LL_DEBUGS("AvatarProperties") << "Received AvatarPicksReply for " << target_id << LL_ENDL;
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processPickInfoReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
LLPickData pick_data;
|
||||
|
|
@ -488,6 +516,20 @@ void LLAvatarPropertiesProcessor::processPickInfoReply(LLMessageSystem* msg, voi
|
|||
self->notifyObservers(pick_data.creator_id, &pick_data, APT_PICK_INFO);
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::processAvatarGroupsReply(LLMessageSystem* msg, void**)
|
||||
{
|
||||
/*
|
||||
AvatarGroupsReply is automatically sent by the server in response to the
|
||||
AvatarPropertiesRequest in addition to the AvatarPropertiesReply message.
|
||||
*/
|
||||
LLUUID agent_id;
|
||||
LLUUID avatar_id;
|
||||
msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);
|
||||
msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AvatarID, avatar_id);
|
||||
|
||||
LL_DEBUGS("AvatarProperties") << "Received AvatarGroupsReply for " << avatar_id << LL_ENDL;
|
||||
}
|
||||
|
||||
void LLAvatarPropertiesProcessor::notifyObservers(const LLUUID& id, void* data, EAvatarProcessorType type)
|
||||
{
|
||||
// Copy the map (because observers may delete themselves when updated?)
|
||||
|
|
|
|||
|
|
@ -235,10 +235,18 @@ public:
|
|||
// Processing of UDP variant of properties, truncates certain fields!
|
||||
static void processAvatarLegacyPropertiesReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processAvatarInterestsReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processAvatarClassifiedsReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processClassifiedInfoReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processAvatarGroupsReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processAvatarNotesReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processAvatarPicksReply(LLMessageSystem* msg, void**);
|
||||
|
||||
static void processPickInfoReply(LLMessageSystem* msg, void**);
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -2713,6 +2713,14 @@ void register_viewer_callbacks(LLMessageSystem* msg)
|
|||
|
||||
msg->setHandlerFunc("AvatarPropertiesReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply);
|
||||
msg->setHandlerFunc("AvatarInterestsReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarInterestsReply);
|
||||
msg->setHandlerFunc("AvatarGroupsReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarGroupsReply);
|
||||
msg->setHandlerFunc("AvatarNotesReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarNotesReply);
|
||||
msg->setHandlerFunc("AvatarPicksReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarPicksReply);
|
||||
msg->setHandlerFunc("AvatarClassifiedReply",
|
||||
&LLAvatarPropertiesProcessor::processAvatarClassifiedsReply);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue