Skip to content
Snippets Groups Projects
Commit bae25942 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-20163 Fix missing flags

Just in case, this is not fully in use yet, mostly because requests
for avatar icons will become very heavy due all that additional info
parent 63386532
No related branches found
No related tags found
No related merge requests found
...@@ -325,9 +325,35 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur ...@@ -325,9 +325,35 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur
avatar_data.born_on = result["member_since"].asDate(); avatar_data.born_on = result["member_since"].asDate();
avatar_data.hide_age = result["hide_age"].asBoolean(); avatar_data.hide_age = result["hide_age"].asBoolean();
avatar_data.profile_url = getProfileURL(agent_id.asString()); avatar_data.profile_url = getProfileURL(agent_id.asString());
avatar_data.customer_type = result["customer_type"].asString();
avatar_data.flags = 0; avatar_data.flags = 0;
if (result["online"].asBoolean())
{
avatar_data.flags |= AVATAR_ONLINE;
}
if (result["allow_publish"].asBoolean())
{
avatar_data.flags |= AVATAR_ALLOW_PUBLISH;
}
if (result["identified"].asBoolean())
{
avatar_data.flags |= AVATAR_IDENTIFIED;
}
if (result["transacted"].asBoolean())
{
avatar_data.flags |= AVATAR_TRANSACTED;
}
avatar_data.caption_index = 0; avatar_data.caption_index = 0;
if (result.has("charter_member")) // won't be present if "caption" is set
{
avatar_data.caption_index = result["charter_member"].asInteger();
}
else if (result.has("caption"))
{
avatar_data.caption_text = result["caption"].asString();
}
LLAvatarPropertiesProcessor* self = getInstance(); LLAvatarPropertiesProcessor* self = getInstance();
// Request processed, no longer pending // Request processed, no longer pending
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment