Avoid name lookups when loading chat history on startup
Also fixes DEV-50451, ??? for object names in chat history log on login.meow-7.2.2
parent
99aea0f4e7
commit
6863c9eb3d
|
|
@ -274,10 +274,14 @@ public:
|
|||
user_name->setValue(mFrom);
|
||||
updateMinUserNameWidth();
|
||||
}
|
||||
else if (mSourceType == CHAT_SOURCE_AGENT)
|
||||
else if (mSourceType == CHAT_SOURCE_AGENT
|
||||
&& chat.mChatStyle != CHAT_STYLE_HISTORY)
|
||||
{
|
||||
// ...from a normal user, lookup the name and fill in later,
|
||||
// but start with blank so sample data from XUI XML doesn't
|
||||
// ...from a normal user, lookup the name and fill in later.
|
||||
// *NOTE: Do not do this for chat history logs, otherwise the viewer
|
||||
// will flood the People API with lookup requests on startup
|
||||
|
||||
// Start with blank so sample data from XUI XML doesn't
|
||||
// flash on the screen
|
||||
user_name->setValue( LLSD() );
|
||||
LLAvatarNameCache::get(mAvatarID,
|
||||
|
|
|
|||
Loading…
Reference in New Issue