diff options
author | Rider Linden <rider@lindenlab.com> | 2015-10-19 12:03:08 -0700 |
---|---|---|
committer | Rider Linden <rider@lindenlab.com> | 2015-10-19 12:03:08 -0700 |
commit | 53b947e0397d6b88fdc6c0a10144e5a6d02a67d3 (patch) | |
tree | 38c94f216386ba6653e8152d9db0198807f4f2cc /indra/newview/llconversationmodel.cpp | |
parent | ed7963bad14abd628fa60d0d5baf357f1858c48c (diff) | |
parent | 4312629e7c5749b86add9d42e6e550602f34dbf5 (diff) |
Merge from viewer release.
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")); |