diff options
author | Alexei Arabadji <aarabadji@productengine.com> | 2010-03-16 17:50:14 +0200 |
---|---|---|
committer | Alexei Arabadji <aarabadji@productengine.com> | 2010-03-16 17:50:14 +0200 |
commit | b5ba328480b0d42343fa02219b98c017f3ac0aad (patch) | |
tree | eca95f3e8881cc6200e323472ef4d55ea412340c /indra/newview/llnotificationhandlerutil.cpp | |
parent | 3874823bd8a388979bad2d882d5d52bffb8d78da (diff) |
EXT-5904 “Offers embedding into IM windows”,
added restoring IM counters when logging message;
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llnotificationhandlerutil.cpp')
-rw-r--r-- | indra/newview/llnotificationhandlerutil.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llnotificationhandlerutil.cpp b/indra/newview/llnotificationhandlerutil.cpp index cb3d52fe13..ae41e673bf 100644 --- a/indra/newview/llnotificationhandlerutil.cpp +++ b/indra/newview/llnotificationhandlerutil.cpp @@ -244,8 +244,13 @@ void LLHandlerUtil::logToIM(const EInstantMessage& session_type, // set searched session as active to avoid IM toast popup LLIMModel::instance().setActiveSessionID(session_id); + S32 unread = session->mNumUnread; + S32 participant_unread = session->mParticipantUnreadMessageCount; LLIMModel::instance().addMessageSilently(session_id, from, from_id, message); + // we shouldn't increment counters when logging, so restore them + session->mNumUnread = unread; + session->mParticipantUnreadMessageCount = participant_unread; // restore active session id if (active_session_id.isNull()) |