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

meow-7.2.2
Ansariel 2017-12-01 12:36:22 +01:00
parent 558691c791
commit de9ffca2f3
1 changed files with 8 additions and 0 deletions

View File

@ -3457,6 +3457,14 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
break;
case IM_GROUP_INVITATION:
{
// <FS:Ansariel> FIRE-20385: Don't show group invitation for groups agent is already a member of
if (gAgent.isInGroup(from_id))
{
LL_INFOS("Messaging") << "Received group invitation for group " << from_id << " but we are already a member" << LL_ENDL;
return;
}
// </FS:Ansariel>
if (!is_muted)
{
// group is not blocked, but we still need to check agent that sent the invitation