diff options
| author | Aura Linden <aura@lindenlab.com> | 2015-10-13 16:44:20 -0700 |
|---|---|---|
| committer | Aura Linden <aura@lindenlab.com> | 2015-10-13 16:44:20 -0700 |
| commit | 2f6166a5a4f8d5be679cef0699142c4ef061fb55 (patch) | |
| tree | f45efe7e4c55c37dc097f15f8e0f445d86bfe972 /indra/newview/llconversationmodel.cpp | |
| parent | 8729f5d23a52263e55df5574c672c87d00b563bd (diff) | |
| parent | a16a6034c25c5e78331ef1bd13485df8759456e5 (diff) | |
Pulled merge from llinternal/bento-box.
Diffstat (limited to 'indra/newview/llconversationmodel.cpp')
| -rwxr-xr-x | indra/newview/llconversationmodel.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/indra/newview/llconversationmodel.cpp b/indra/newview/llconversationmodel.cpp index 6e32ce60ec..328a638f2f 100755 --- a/indra/newview/llconversationmodel.cpp +++ b/indra/newview/llconversationmodel.cpp @@ -136,7 +136,24 @@ void LLConversationItem::buildParticipantMenuOptions(menuentry_vec_t& items, U32 items.push_back(std::string("im")); items.push_back(std::string("offer_teleport")); items.push_back(std::string("request_teleport")); - items.push_back(std::string("voice_call")); + + if (getType() != CONV_SESSION_1_ON_1) + { + items.push_back(std::string("voice_call")); + } + else + { + LLVoiceChannel* voice_channel = LLIMModel::getInstance() ? LLIMModel::getInstance()->getVoiceChannel(this->getUUID()) : NULL; + if(voice_channel != LLVoiceChannel::getCurrentVoiceChannel()) + { + items.push_back(std::string("voice_call")); + } + else + { + items.push_back(std::string("disconnect_from_voice")); + } + } + items.push_back(std::string("chat_history")); items.push_back(std::string("separator_chat_history")); items.push_back(std::string("add_friend")); |
