EXT-4872 FIXED hiding Start IM button for ad-hoc call invitation

Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/658/

--HG--
branch : product-engine
meow-7.2.2
Igor Borovkov 2010-06-25 19:43:03 +03:00
parent 36bf984b03
commit 2112f333bd
1 changed files with 4 additions and 2 deletions

View File

@ -1898,8 +1898,6 @@ BOOL LLIncomingCallDialog::postBuild()
// check to see if this is an Avaline call
bool is_avatar = LLVoiceClient::getInstance()->isParticipantAvatar(session_id);
childSetVisible("Start IM", is_avatar); // no IM for avaline
if (caller_name == "anonymous")
{
caller_name = getString("anonymous");
@ -1931,6 +1929,10 @@ BOOL LLIncomingCallDialog::postBuild()
mLifetimeTimer.stop();
}
//it's not possible to connect to existing Ad-Hoc chat through incoming ad-hoc call
//and no IM for avaline
childSetVisible("Start IM", is_avatar && notify_box_type != "VoiceInviteAdHoc");
setCanDrag(FALSE);
return TRUE;