CHUI-599 : Fixed : Avatar name provides now a method to get the regular account name.
parent
94694be6b5
commit
08cc82ec48
|
|
@ -74,6 +74,9 @@ public:
|
|||
// Also used for backwards compatibility with systems like voice and muting
|
||||
std::string getUserName() const;
|
||||
|
||||
// Returns "james.linden" or the legacy name for very old names
|
||||
std::string getAccountName() const { return mUsername; }
|
||||
|
||||
// Debug print of the object
|
||||
void dump() const;
|
||||
|
||||
|
|
|
|||
|
|
@ -315,15 +315,11 @@ static const char* get_profile_floater_name(const LLUUID& avatar_id)
|
|||
|
||||
static void on_avatar_name_show_profile(const LLUUID& agent_id, const LLAvatarName& av_name)
|
||||
{
|
||||
std::string username = av_name.getUserName();
|
||||
|
||||
llinfos << "opening web profile for " << username << llendl;
|
||||
std::string url = getProfileURL(username);
|
||||
std::string url = getProfileURL(av_name.getAccountName());
|
||||
|
||||
// PROFILES: open in webkit window
|
||||
LLFloaterWebContent::Params p;
|
||||
p.url(url).
|
||||
id(agent_id.asString());
|
||||
p.url(url).id(agent_id.asString());
|
||||
LLFloaterReg::showInstance(get_profile_floater_name(agent_id), p);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue