Increment unread message count for IM floaters that are popped out but not focused.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user