summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2011-10-11 18:18:02 -0400
committerJonathan Yap <none@none>2011-10-11 18:18:02 -0400
commit5cfd34df908572045fe3ff193e2f9242b9f2025b (patch)
tree9191dae9691e88bbba8cfb4dfdbd4e49404decd1 /indra
parentbe251b06eb785a2d301115f9c231eb5f3c906224 (diff)
STORM-976 Object muted by name still displays notification message when clicked
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llviewermessage.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index 74ee918bfe..8f3163c0cf 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -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;