fixed EXT-4643 “IM toasts don't appear after few teleport offers were sent to that avatar”
corrected checking opened active IM session; corrected restoring active IM session after logging IM notification; --HG-- branch : product-enginemaster
parent
9936155fb7
commit
43bb3d00ec
|
|
@ -95,7 +95,8 @@ void toast_callback(const LLSD& msg){
|
|||
}
|
||||
|
||||
// check whether incoming IM belongs to an active session or not
|
||||
if (LLIMModel::getInstance()->getActiveSessionID() == msg["session_id"])
|
||||
if (LLIMModel::getInstance()->getActiveSessionID().notNull()
|
||||
&& LLIMModel::getInstance()->getActiveSessionID() == msg["session_id"])
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -123,7 +123,14 @@ void LLHandlerUtil::logToIM(const EInstantMessage& session_type,
|
|||
message);
|
||||
|
||||
// restore active session id
|
||||
LLIMModel::instance().setActiveSessionID(active_session_id);
|
||||
if (active_session_id.isNull())
|
||||
{
|
||||
LLIMModel::instance().resetActiveSessionID();
|
||||
}
|
||||
else
|
||||
{
|
||||
LLIMModel::instance().setActiveSessionID(active_session_id);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue