diff options
author | Jon Wolk <jwolk@lindenlab.com> | 2008-07-15 00:41:08 +0000 |
---|---|---|
committer | Jon Wolk <jwolk@lindenlab.com> | 2008-07-15 00:41:08 +0000 |
commit | ae464867e6714816cd5bdaeecdd1d3c0a0817e58 (patch) | |
tree | 02830da2f640dab402a7e7222b4f0aa6eca930b2 /indra/newview | |
parent | 40d2bb564d35809d7735d2ec06ba988db7327020 (diff) |
svn merge -r 90938:92097 svn+ssh://svn.lindenlab.com/svn/linden/branches/qar-730/qar-730-merge -> release. This is for QAR-730: Combination merge of QAR-432 and QAR-601
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llimpanel.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llpanellandmedia.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llstatusbar.cpp | 2 | ||||
-rw-r--r-- | indra/newview/llvoiceclient.cpp | 15 |
4 files changed, 13 insertions, 10 deletions
diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 754935edc6..9d8641eb2f 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -2225,7 +2225,7 @@ void LLFloaterIMPanel::showSessionForceClose( "ForceCloseChatterBoxSession", args, LLFloaterIMPanel::onConfirmForceCloseError, - this); + new LLUUID(mSessionUUID)); } diff --git a/indra/newview/llpanellandmedia.cpp b/indra/newview/llpanellandmedia.cpp index 34a4ad3954..3d38421ed4 100644 --- a/indra/newview/llpanellandmedia.cpp +++ b/indra/newview/llpanellandmedia.cpp @@ -150,9 +150,9 @@ void LLPanelLandMedia::refresh() mCheckSoundLocal->set( parcel->getSoundLocal() ); mCheckSoundLocal->setEnabled( can_change_media ); - if(parcel->getVoiceEnabled()) + if(parcel->getParcelFlagAllowVoice()) { - if(parcel->getVoiceUseEstateChannel()) + if(parcel->getParcelFlagUseEstateVoiceChannel()) mRadioVoiceChat->setSelectedIndex(kRadioVoiceChatEstate); else mRadioVoiceChat->setSelectedIndex(kRadioVoiceChatPrivate); diff --git a/indra/newview/llstatusbar.cpp b/indra/newview/llstatusbar.cpp index a7314548ca..ac80f1b669 100644 --- a/indra/newview/llstatusbar.cpp +++ b/indra/newview/llstatusbar.cpp @@ -429,7 +429,7 @@ void LLStatusBar::refresh() childSetVisible("restrictpush", FALSE); } - BOOL have_voice = parcel && parcel->getVoiceEnabled(); + BOOL have_voice = parcel && parcel->getParcelFlagAllowVoice(); if (have_voice) { childSetVisible("status_no_voice", FALSE); diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp index 222ce45d9d..445e553c23 100644 --- a/indra/newview/llvoiceclient.cpp +++ b/indra/newview/llvoiceclient.cpp @@ -3426,16 +3426,13 @@ std::string LLVoiceClient::nameFromAvatar(LLVOAvatar *avatar) std::string LLVoiceClient::nameFromID(const LLUUID &uuid) { std::string result; - std::string rawuuid; - uuid.toCompressedString(rawuuid); - // Prepending this apparently prevents conflicts with reserved names inside the vivox and diamondware code. result = "x"; // Base64 encode and replace the pieces of base64 that are less compatible // with e-mail local-parts. // See RFC-4648 "Base 64 Encoding with URL and Filename Safe Alphabet" - result += LLBase64::encode((const U8*)rawuuid.c_str(), UUID_BYTES); + result += LLBase64::encode(uuid.mData, UUID_BYTES); LLStringUtil::replaceChar(result, '+', '-'); LLStringUtil::replaceChar(result, '/', '_'); @@ -3467,8 +3464,6 @@ bool LLVoiceClient::IDFromName(const std::string name, LLUUID &uuid) if(len == UUID_BYTES) { // The decode succeeded. Stuff the bits into the result's UUID - // MBW -- XXX -- there's no analogue of LLUUID::toCompressedString that allows you to set a UUID from binary data. - // The data field is public, so we cheat thusly: memcpy(uuid.mData, rawuuid, UUID_BYTES); result = true; } @@ -4076,6 +4071,9 @@ class LLViewerParcelVoiceInfo : public LLHTTPNode //the parcel you are in has changed something about its //voice information + //this is a misnomer, as it can also be when you are not in + //a parcel at all. Should really be something like + //LLViewerVoiceInfoChanged..... if ( input.has("body") ) { LLSD body = input["body"]; @@ -4085,6 +4083,11 @@ class LLViewerParcelVoiceInfo : public LLHTTPNode //body["voice_credentials"] has "channel_uri" (str), //body["voice_credentials"] has "channel_credentials" (str) + + //if we really wanted to be extra careful, + //we'd check the supplied + //local parcel id to make sure it's for the same parcel + //we believe we're in if ( body.has("voice_credentials") ) { LLSD voice_credentials = body["voice_credentials"]; |