SL-13824 Remove notification when both joining a group and leaving a group
parent
0e829d2ecc
commit
f8fb2dab5b
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -4214,13 +4214,6 @@ Leave Group?
|
|||
yestext="OK"/>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="notify.tga"
|
||||
name="GroupDepart"
|
||||
type="notify">
|
||||
You have left the group '<nolink>[group_name]</nolink>'.
|
||||
<tag>group</tag>
|
||||
</notification>
|
||||
|
||||
<notification
|
||||
icon="alertmodal.tga"
|
||||
|
|
|
|||
Loading…
Reference in New Issue