Skip to content
Snippets Groups Projects
Commit a85497f5 authored by Alexei Arabadji's avatar Alexei Arabadji
Browse files
--HG--
branch : product-engine
parents 30c586e7 b5ba3284
No related branches found
No related tags found
No related merge requests found
...@@ -244,8 +244,13 @@ void LLHandlerUtil::logToIM(const EInstantMessage& session_type, ...@@ -244,8 +244,13 @@ void LLHandlerUtil::logToIM(const EInstantMessage& session_type,
// set searched session as active to avoid IM toast popup // set searched session as active to avoid IM toast popup
LLIMModel::instance().setActiveSessionID(session_id); LLIMModel::instance().setActiveSessionID(session_id);
S32 unread = session->mNumUnread;
S32 participant_unread = session->mParticipantUnreadMessageCount;
LLIMModel::instance().addMessageSilently(session_id, from, from_id, LLIMModel::instance().addMessageSilently(session_id, from, from_id,
message); message);
// we shouldn't increment counters when logging, so restore them
session->mNumUnread = unread;
session->mParticipantUnreadMessageCount = participant_unread;
// restore active session id // restore active session id
if (active_session_id.isNull()) if (active_session_id.isNull())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment