Increment unread message count for IM floaters that are popped out but not focused.

This commit is contained in:
Inusaito Sayori
2013-08-24 21:35:14 -04:00
parent 74698fa3d8
commit 323adeb224

View File

@@ -876,7 +876,7 @@ void LLFloaterIMPanel::addHistoryLine(const std::string &utf8msg, LLColor4 incol
// [/Ansariel: Display name support]
}
if (!isInVisibleChain())
if (!isInVisibleChain() || (!hasFocus() && getParent() == gFloaterView))
{
mNumUnreadMessages++;
}
@@ -1725,6 +1725,7 @@ BOOL LLFloaterIMPanel::focusFirstItem(BOOL prefer_text_fields, BOOL focus_flash
void LLFloaterIMPanel::onFocusReceived()
{
mNumUnreadMessages = 0;
if (getVisible() && mInputEditor->getVisible())
{
setInputFocus(true);