diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-08-26 12:26:07 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2020-09-23 11:31:17 +0300 |
commit | f8fb2dab5b93588fb3e7f4c1912fd253375e0ced (patch) | |
tree | 267fde12c64facac63f9dbc7a86ee15ffbc345b7 /indra/newview/llviewermessage.cpp | |
parent | 0e829d2ecca9454f4d4bcced0fe9049b0f91465d (diff) |
SL-13824 Remove notification when both joining a group and leaving a group
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index e78ace061e..9c56766d0d 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5036,6 +5036,15 @@ bool attempt_standard_notification(LLMessageSystem* msgsystem) // notification was specified using the new mechanism, so we can just handle it here std::string notificationID; msgsystem->getStringFast(_PREHASH_AlertInfo, _PREHASH_Message, notificationID); + + //SL-13824 skip notification when both joining a group and leaving a group + //remove this after server stops sending these messages + if (notificationID == "JoinGroupSuccess" || + notificationID == "GroupDepart") + { + return true; + } + if (!LLNotifications::getInstance()->templateExists(notificationID)) { return false; |