Don't notify the user who created the team
This commit is contained in:
parent
850c3a3dd4
commit
0b90d826be
1 changed files with 5 additions and 0 deletions
|
@ -396,6 +396,11 @@ func (s *SendTeamMemberAddedNotification) Handle(msg *message.Message) (err erro
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Don't notify the user themselves
|
||||||
|
if event.Doer.ID == event.Member.ID {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
return notifications.Notify(event.Member, &TeamMemberAddedNotification{
|
return notifications.Notify(event.Member, &TeamMemberAddedNotification{
|
||||||
Member: event.Member,
|
Member: event.Member,
|
||||||
Doer: event.Doer,
|
Doer: event.Doer,
|
||||||
|
|
Loading…
Reference in a new issue