CHUI-505 FIXED Open Call Log if user has new events while out:
force open Conversation Log Floater when received a saved offline messagemeow-7.2.2
parent
567df7bf27
commit
e2c080b558
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue