From 88af3cabc390b1fbdf2b1ec9b0a22a7a6296d887 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Mon, 9 Sep 2013 20:55:21 -0400 Subject: [PATCH] Fix the issue of system messages being counted towards unread IMs --- indra/newview/llimpanel.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 727c431b7..9925dabc6 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -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); }