Skip to content
Snippets Groups Projects
Commit 83097220 authored by Merov Linden's avatar Merov Linden
Browse files

Pull merge from richard/viewer-chui

parents 60eaa887 41d5f820
No related branches found
No related tags found
No related merge requests found
......@@ -162,7 +162,7 @@ BOOL LLFloaterIMContainer::postBuild()
setTabContainer(getChild<LLTabContainer>("im_box_tab_container"));
mStubPanel = getChild<LLPanel>("stub_panel");
mStubTextBox = getChild<LLTextBox>("stub_textbox_2");
mStubTextBox = getChild<LLTextBox>("stub_textbox");
mStubTextBox->setURLClickedCallback(boost::bind(&LLFloaterIMContainer::returnFloaterToHost, this));
mConversationsStack = getChild<LLLayoutStack>("conversations_stack");
......
......@@ -129,11 +129,7 @@ void process_dnd_im(const LLSD& notification)
false); //will need slight refactor to retrieve whether offline message or not (assume online for now)
}
//For now always flash conversation line item
LLFloaterIMContainer* im_box = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container");
im_box->flashConversationItemWidget(sessionID, true);
//And flash toolbar button
//Flash toolbar button for now, eventually the user's preference will be taken into account
gToolBarView->flashCommand(LLCommandId("chat"), true);
}
......@@ -225,12 +221,18 @@ void on_new_message(const LLSD& msg)
//User is not focused on conversation containing the message
if(session_floater_not_focused)
{
im_box->flashConversationItemWidget(session_id, true);
if(!LLMuteList::getInstance()->isMuted(participant_id))
{
im_box->flashConversationItemWidget(session_id, true);
}
//The conversation floater isn't focused/open
if(conversation_floater_not_focused)
{
gToolBarView->flashCommand(LLCommandId("chat"), true);
if(!LLMuteList::getInstance()->isMuted(participant_id)
&& !gAgent.isDoNotDisturb())
{
gToolBarView->flashCommand(LLCommandId("chat"), true);
}
//Show IM toasts (upper right toasts)
// Skip toasting for system messages and for nearby chat
......
......@@ -161,32 +161,18 @@
<text
type="string"
clip_partial="false"
follows="left|top"
follows="left|top|right"
layout="topleft"
left="20"
right="-20"
name="stub_textbox_1"
top="30"
height="20"
valign="center"
wrap="true">
This conversation is in a separate window.
</text>
<text
type="string"
clip_partial="false"
follows="left|top"
layout="topleft"
left="20"
right="-20"
name="stub_textbox_2"
top="60"
height="20"
left="15"
right="-15"
name="stub_textbox"
top="25"
height="40"
valign="center"
parse_urls="true"
wrap="true">
[secondlife:/// Bring it back.]
</text>
This conversation is in a separate window. [secondlife:/// Bring it back.]
</text>
</panel>
</panel_container>
</layout_panel>
......
......@@ -76,7 +76,7 @@
parameter="privacy_preferences" />
</menu_item_call>
<menu_item_check
label="Open conversation log"
label="Conversation log..."
name="Conversation"
visible="true">
<menu_item_check.on_check
......
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