STORM-976 Object muted by name still displays notification message when clicked

meow-7.2.2
Jonathan Yap 2011-10-11 18:18:02 -04:00
parent be251b06eb
commit 5cfd34df90
2 changed files with 6 additions and 2 deletions

View File

@ -576,6 +576,7 @@ Jonathan Yap
STORM-1567
STORM-1572
STORM-1574
STORM-976
Kadah Coba
STORM-1060
Jondan Lundquist

View File

@ -1809,8 +1809,11 @@ void LLOfferInfo::initRespondFunctionMap()
void inventory_offer_handler(LLOfferInfo* info)
{
//If muted, don't even go through the messaging stuff. Just curtail the offer here.
if (LLMuteList::getInstance()->isMuted(info->mFromID, info->mFromName))
// If muted, don't even go through the messaging stuff. Just curtail the offer here.
// Passing in a null UUID handles the case of where you have muted one of your own objects by_name.
// The solution for STORM-1297 seems to handle the cases where the object is owned by someone else.
if (LLMuteList::getInstance()->isMuted(info->mFromID, info->mFromName) ||
LLMuteList::getInstance()->isMuted(LLUUID::null, info->mFromName))
{
info->forceResponse(IOR_MUTE);
return;