From cbab53ec392fbf3cb1e34324f0a96d04dd084ce6 Mon Sep 17 00:00:00 2001 From: Sergey Borushevsky Date: Mon, 30 Nov 2009 17:47:20 +0200 Subject: Implemented major sub-task EXT-2882 (User who has been muted/unmuted by the moderator (that means, user is muted for the whole group) should receive a notification.) --HG-- branch : product-engine --- indra/newview/llimfloater.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'indra/newview/llimfloater.cpp') diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 310eaaec27..5fa278e727 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -634,6 +634,9 @@ void LLIMFloater::processAgentListUpdates(const LLSD& body) else label = LLTrans::getString("IM_to_label") + " " + LLIMModel::instance().getName(mSessionID); mInputEditor->setLabel(label); + + if (moderator_muted_text) + LLNotifications::instance().add("TextChatIsMutedByModerator"); } } } -- cgit v1.2.3 From 3854305519d2fccf113408f2ab5acb3e12e6fe31 Mon Sep 17 00:00:00 2001 From: Sergey Borushevsky Date: Mon, 30 Nov 2009 18:58:52 +0200 Subject: Fixed build after implementation of EXT-2882. Replaced LLNotifications::add call by LLNotificationsUtil::add. --HG-- branch : product-engine --- indra/newview/llimfloater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'indra/newview/llimfloater.cpp') diff --git a/indra/newview/llimfloater.cpp b/indra/newview/llimfloater.cpp index 5fa278e727..5e9ffdf410 100644 --- a/indra/newview/llimfloater.cpp +++ b/indra/newview/llimfloater.cpp @@ -34,6 +34,8 @@ #include "llimfloater.h" +#include "llnotificationsutil.h" + #include "llagent.h" #include "llappviewer.h" #include "llbutton.h" @@ -636,7 +638,7 @@ void LLIMFloater::processAgentListUpdates(const LLSD& body) mInputEditor->setLabel(label); if (moderator_muted_text) - LLNotifications::instance().add("TextChatIsMutedByModerator"); + LLNotificationsUtil::add("TextChatIsMutedByModerator"); } } } -- cgit v1.2.3