SL-10347 Fixed Users can't exchange text messages after moderator click on "Mute everyone"

master
andreykproductengine 2019-02-11 17:40:41 +02:00
parent eb1c3c5cbb
commit b31cd0a7e9
1 changed files with 3 additions and 3 deletions

View File

@ -605,16 +605,16 @@ void LLConversationItemParticipant::muteVoice(bool mute_voice)
LLAvatarName av_name;
LLAvatarNameCache::get(mUUID, &av_name);
LLMuteList * mute_listp = LLMuteList::getInstance();
bool voice_already_muted = mute_listp->isMuted(mUUID, av_name.getUserName());
bool voice_already_muted = mute_listp->isMuted(mUUID, av_name.getUserName(), LLMute::flagVoiceChat);
LLMute mute(mUUID, av_name.getUserName(), LLMute::AGENT);
if (voice_already_muted && !mute_voice)
{
mute_listp->remove(mute);
mute_listp->remove(mute, LLMute::flagVoiceChat);
}
else if (!voice_already_muted && mute_voice)
{
mute_listp->add(mute);
mute_listp->add(mute, LLMute::flagVoiceChat);
}
}