Attempt to satisfy Issue 82: Idle status in nametags doesn't always update properly

This commit is contained in:
Lirusaito
2013-07-18 23:19:34 -04:00
parent 85e667bb35
commit 663d0a29f2
2 changed files with 20 additions and 9 deletions

View File

@@ -61,6 +61,7 @@
#include "llviewermenu.h"
#include "llviewermessage.h"
#include "llviewerwindow.h"
#include "llvoavatar.h" // For mIdleTimer reset
#include "llnotify.h"
#include "llviewerregion.h"
@@ -79,6 +80,8 @@ LLIMMgr* gIMMgr = NULL;
//
// Helper Functions
//
LLVOAvatar* find_avatar_from_object(const LLUUID& id);
LLColor4 agent_chat_color(const LLUUID& id, const std::string& name, bool local_chat)
{
if (id.isNull() || (name == SYSTEM_FROM))
@@ -517,6 +520,8 @@ void LLIMMgr::addMessage(
}
}
if (LLVOAvatar* from_avatar = find_avatar_from_object(target_id)) from_avatar->mIdleTimer.reset(); // Not idle, message sent to somewhere
// create IM window as necessary
if(!floater)
{