Fix the issue of system messages being counted towards unread IMs

This commit is contained in:
Inusaito Sayori
2013-09-09 20:55:21 -04:00
parent f838c235cb
commit 88af3cabc3

View File

@@ -869,13 +869,13 @@ void LLFloaterIMPanel::addHistoryLine(const std::string &utf8msg, LLColor4 incol
// [/Ansariel: Display name support]
}
if (!isInVisibleChain() || (!hasFocus() && getParent() == gFloaterView))
{
mNumUnreadMessages++;
}
if (source.notNull())
{
if (!isInVisibleChain() || (!hasFocus() && getParent() == gFloaterView))
{
mNumUnreadMessages++;
}
mSpeakers->speakerChatted(source);
mSpeakers->setSpeakerTyping(source, FALSE);
}