FIRE-20385: Don't show group invitation for groups agent is already a member of

Fri, 01 Dec 2017 12:36:22 +0100

author
Ansariel
date
Fri, 01 Dec 2017 12:36:22 +0100
changeset 53522
3b4fe4d6b487
parent 53521
2deeb2ae6be4
child 53523
24778a73e766

FIRE-20385: Don't show group invitation for groups agent is already a member of

indra/newview/llviewermessage.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llviewermessage.cpp	Fri Dec 01 12:35:07 2017 +0100
     1.2 +++ b/indra/newview/llviewermessage.cpp	Fri Dec 01 12:36:22 2017 +0100
     1.3 @@ -3457,6 +3457,14 @@
     1.4  		break;
     1.5  	case IM_GROUP_INVITATION:
     1.6  		{
     1.7 +			// <FS:Ansariel> FIRE-20385: Don't show group invitation for groups agent is already a member of
     1.8 +			if (gAgent.isInGroup(from_id))
     1.9 +			{
    1.10 +				LL_INFOS("Messaging") << "Received group invitation for group " << from_id << " but we are already a member" << LL_ENDL;
    1.11 +				return;
    1.12 +			}
    1.13 +			// </FS:Ansariel>
    1.14 +
    1.15  			if (!is_muted)
    1.16  			{
    1.17  				// group is not blocked, but we still need to check agent that sent the invitation

mercurial