From f74071b19fcac12b92a5f3611a068be30ae3fbd2 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Tue, 26 Mar 2019 18:12:19 +0200 Subject: SL-2878 Fixed eternal properties rerequests --- indra/newview/llpanelprofile.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelprofile.cpp b/indra/newview/llpanelprofile.cpp index d03d3f59b8..e5fa8de6a0 100644 --- a/indra/newview/llpanelprofile.cpp +++ b/indra/newview/llpanelprofile.cpp @@ -471,8 +471,9 @@ void LLPanelProfileSecondLife::onAvatarNameCache(const LLUUID& agent_id, const L void LLPanelProfileSecondLife::fillCommonData(const LLAvatarData* avatar_data) { - //remove avatar id from cache to get fresh info - LLAvatarIconIDCache::getInstance()->remove(avatar_data->avatar_id); + // Refresh avatar id in cache with new info to prevent re-requests + // and to make sure icons in text will be up to date + LLAvatarIconIDCache::getInstance()->add(avatar_data->avatar_id, avatar_data->image_id); LLStringUtil::format_map_t args; { -- cgit v1.2.3