From 7e040000c6c3471f53011994d95bc3b3d721782d Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev Date: Wed, 16 Mar 2022 17:52:41 +0200 Subject: SL-16937 New Profile capability, updated charter_member #4 --- indra/newview/llpanelprofile.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index d6f88047d1..5e85fa227e 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -161,15 +161,14 @@ void request_avatar_properties_coro(std::string cap_url, LLUUID agent_id) avatar_data->flags |= AVATAR_ALLOW_PUBLISH; } - if (result["charter_member"].asBoolean()) + avatar_data->caption_index = 0; + if (result.has("charter_member")) // won't be present if "caption" is set { - const S32 TYPE_CHARTER_MEMBER = 2; - avatar_data->caption_index = TYPE_CHARTER_MEMBER; + avatar_data->caption_index = result["charter_member"].asInteger(); } - else + else if (result.has("caption")) { - const S32 TYPE_RESIDENT = 0; // See ACCT_TYPE - avatar_data->caption_index = TYPE_RESIDENT; + avatar_data->caption_text = result["caption"].asString(); } panel = floater_profile->findChild(PANEL_SECONDLIFE, TRUE); -- cgit v1.2.3