Merge remote-tracking branch 'lirusato/master' into 1.7.3-dev
This commit is contained in:
@@ -1186,40 +1186,43 @@ void LLFloaterIMPanel::init(const std::string& session_label)
|
||||
// [Ansariel: Display name support]
|
||||
mProfileButtonEnabled = FALSE;
|
||||
// [/Ansariel: Display name support]
|
||||
|
||||
|
||||
static LLCachedControl<bool> concise_im("UseConciseIMButtons");
|
||||
static LLCachedControl<bool> concise_group("UseConciseGroupChatButtons");
|
||||
static LLCachedControl<bool> concise_conf("UseConciseConferenceButtons");
|
||||
std::string xml_filename;
|
||||
switch(mDialog)
|
||||
{
|
||||
case IM_SESSION_GROUP_START:
|
||||
mFactoryMap["active_speakers_panel"] = LLCallbackMap(createSpeakersPanel, this);
|
||||
xml_filename = "floater_instant_message_group.xml";
|
||||
xml_filename = concise_group ? "floater_instant_message_group_concisebuttons.xml" : "floater_instant_message_group.xml";
|
||||
mVoiceChannel = new LLVoiceChannelGroup(mSessionUUID, mSessionLabel);
|
||||
break;
|
||||
case IM_SESSION_INVITE:
|
||||
mFactoryMap["active_speakers_panel"] = LLCallbackMap(createSpeakersPanel, this);
|
||||
if (gAgent.isInGroup(mSessionUUID))
|
||||
{
|
||||
xml_filename = "floater_instant_message_group.xml";
|
||||
xml_filename = concise_group ? "floater_instant_message_group_concisebuttons.xml" : "floater_instant_message_group.xml";
|
||||
}
|
||||
else // must be invite to ad hoc IM
|
||||
{
|
||||
xml_filename = "floater_instant_message_ad_hoc.xml";
|
||||
xml_filename = concise_conf ? "floater_instant_message_ad_hoc_concisebuttons.xml" : "floater_instant_message_ad_hoc.xml";
|
||||
}
|
||||
mVoiceChannel = new LLVoiceChannelGroup(mSessionUUID, mSessionLabel);
|
||||
break;
|
||||
case IM_SESSION_P2P_INVITE:
|
||||
xml_filename = "floater_instant_message.xml";
|
||||
xml_filename = concise_im ? "floater_instant_message_concisebuttons.xml" : "floater_instant_message.xml";
|
||||
mVoiceChannel = new LLVoiceChannelP2P(mSessionUUID, mSessionLabel, mOtherParticipantUUID);
|
||||
break;
|
||||
case IM_SESSION_CONFERENCE_START:
|
||||
mFactoryMap["active_speakers_panel"] = LLCallbackMap(createSpeakersPanel, this);
|
||||
xml_filename = "floater_instant_message_ad_hoc.xml";
|
||||
xml_filename = concise_conf ? "floater_instant_message_ad_hoc_concisebuttons.xml" : "floater_instant_message_ad_hoc.xml";
|
||||
mVoiceChannel = new LLVoiceChannelGroup(mSessionUUID, mSessionLabel);
|
||||
break;
|
||||
// just received text from another user
|
||||
case IM_NOTHING_SPECIAL:
|
||||
|
||||
xml_filename = "floater_instant_message.xml";
|
||||
xml_filename = concise_im ? "floater_instant_message_concisebuttons.xml" : "floater_instant_message.xml";
|
||||
|
||||
mTextIMPossible = LLVoiceClient::getInstance()->isSessionTextIMPossible(mSessionUUID);
|
||||
mProfileButtonEnabled = LLVoiceClient::getInstance()->isParticipantAvatar(mSessionUUID);
|
||||
@@ -1229,7 +1232,7 @@ void LLFloaterIMPanel::init(const std::string& session_label)
|
||||
break;
|
||||
default:
|
||||
llwarns << "Unknown session type" << llendl;
|
||||
xml_filename = "floater_instant_message.xml";
|
||||
xml_filename = concise_im ? "floater_instant_message_concisebuttons.xml" : "floater_instant_message.xml";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user