diff options
author | Oz Linden <oz@lindenlab.com> | 2013-08-29 16:51:59 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2013-08-29 16:51:59 -0400 |
commit | d43a302eaf1b0ca521d4b865e39a8d849da5d5b8 (patch) | |
tree | f24e3baf34be12a12d3d2fcd2bd62625680dfad1 /indra/newview/llavataractions.cpp | |
parent | ea305b74d124aedf64afbb89d2b3685dae49bed9 (diff) |
MAINT-3075: don't display the target user name as a SLURL in the RequestTeleport dialog
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rwxr-xr-x | indra/newview/llavataractions.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index 5f1f57f550..70cc48f12b 100755 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -445,7 +445,14 @@ void LLAvatarActions::teleportRequest(const LLUUID& id) { LLSD notification; notification["uuid"] = id; - notification["NAME_SLURL"] = LLSLURL("agent", id, "about").getSLURLString(); + LLAvatarName av_name; + if (!LLAvatarNameCache::get(id, &av_name)) + { + // unlikely ... they just picked this name from somewhere... + LLAvatarNameCache::get(id, boost::bind(&LLAvatarActions::teleportRequest, id)); + return; // reinvoke this when the name resolves + } + notification["NAME"] = av_name.getCompleteName(); LLSD payload; |