diff options
author | Kent Quirk <q@lindenlab.com> | 2010-03-19 11:27:10 -0400 |
---|---|---|
committer | Kent Quirk <q@lindenlab.com> | 2010-03-19 11:27:10 -0400 |
commit | 5e0be34c26f384a111063399b619c82b2a951dcd (patch) | |
tree | 6b04bc67970f06c517436eea2b803406915bf8a7 /indra/newview/llimview.cpp | |
parent | b84b0e71c12bb5ae7e9a6dafa1735a99f5975645 (diff) | |
parent | d217adeede2d99ac6f48064388d91aa14ab9a4d2 (diff) |
Merge
Diffstat (limited to 'indra/newview/llimview.cpp')
-rw-r--r-- | indra/newview/llimview.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index b3f085ef6d..6ce06adc80 100644 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -717,13 +717,22 @@ LLIMModel::LLIMSession* LLIMModel::addMessageSilently(const LLUUID& session_id, return NULL; } - addToHistory(session_id, from, from_id, utf8_text); - if (log2file) logToFile(session_id, from, from_id, utf8_text); + // replace interactive system message marker with correct from string value + std::string from_name = from; + if (INTERACTIVE_SYSTEM_FROM == from) + { + from_name = SYSTEM_FROM; + } + + addToHistory(session_id, from_name, from_id, utf8_text); + if (log2file) logToFile(session_id, from_name, from_id, utf8_text); session->mNumUnread++; //update count of unread messages from real participant - if (!(from_id.isNull() || from_id == gAgentID || SYSTEM_FROM == from)) + if (!(from_id.isNull() || from_id == gAgentID || SYSTEM_FROM == from) + // we should increment counter for interactive system messages() + || INTERACTIVE_SYSTEM_FROM == from) { ++(session->mParticipantUnreadMessageCount); } |