diff options
author | Callum Prentice <callum@gmail.com> | 2017-04-21 14:32:13 -0700 |
---|---|---|
committer | Callum Prentice <callum@gmail.com> | 2017-04-21 14:32:13 -0700 |
commit | 2a5c47eb083a55cccb60916263b3c2b5d8d9c4fe (patch) | |
tree | ec40f2091563c690e06fb16d54b84d0e65bef39a /indra/newview/llconversationmodel.cpp | |
parent | 8846f9c7c19f85118da7d5601ad1dd14e491b6f5 (diff) | |
parent | 5f6bcaf456469f07d23a5599a1fed59420fd6ae7 (diff) |
Automated merge with tip of viewer64 (after it was merged with viewer-release)
Diffstat (limited to 'indra/newview/llconversationmodel.cpp')
-rw-r--r-- | indra/newview/llconversationmodel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llconversationmodel.cpp b/indra/newview/llconversationmodel.cpp index 328a638f2f..ebbbf23dee 100644 --- a/indra/newview/llconversationmodel.cpp +++ b/indra/newview/llconversationmodel.cpp @@ -602,12 +602,12 @@ bool LLConversationItemParticipant::isVoiceMuted() void LLConversationItemParticipant::muteVoice(bool mute_voice) { - std::string name; - gCacheName->getFullName(mUUID, name); + LLAvatarName av_name; + LLAvatarNameCache::get(mUUID, &av_name); LLMuteList * mute_listp = LLMuteList::getInstance(); - bool voice_already_muted = mute_listp->isMuted(mUUID, name); + bool voice_already_muted = mute_listp->isMuted(mUUID, av_name.getUserName()); - LLMute mute(mUUID, name, LLMute::AGENT); + LLMute mute(mUUID, av_name.getUserName(), LLMute::AGENT); if (voice_already_muted && !mute_voice) { mute_listp->remove(mute); |