CHUI-505 FIXED Open Call Log if user has new events while out:

force open Conversation Log Floater when received a saved offline message
meow-7.2.2
AlexanderP ProductEngine 2012-12-06 19:26:52 +02:00
parent 567df7bf27
commit e2c080b558
1 changed files with 13 additions and 0 deletions

View File

@ -30,6 +30,7 @@
#include "llavatarnamecache.h" // IDEVO
#include "llavataractions.h"
#include "llfloaterconversationlog.h"
#include "llfloaterreg.h"
#include "llfontgl.h"
#include "llgl.h"
@ -2467,6 +2468,18 @@ void LLIMMgr::addMessage(
new_session_id = computeSessionID(dialog, other_participant_id);
}
// Open conversation log if offline messages are present
if (is_offline_msg)
{
LLFloaterConversationLog* floater_log =
LLFloaterReg::getTypedInstance<LLFloaterConversationLog>("conversation");
if (floater_log && !(floater_log->isFrontmost()))
{
floater_log->openFloater();
floater_log->setFrontmost(TRUE);
}
}
//*NOTE session_name is empty in case of incoming P2P sessions
std::string fixed_session_name = from;
bool name_is_setted = false;