diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-05-18 14:58:40 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-05-18 08:58:40 -0400 |
commit | a123b54d5ecd871feff94a047b99f65607885ee7 (patch) | |
tree | 4e8efef3542f8a2bd81c025ada250e5f2acda629 /app/notification.go | |
parent | fc58174747cd25eded07c30f5f122d4f8122e7e5 (diff) | |
download | chat-a123b54d5ecd871feff94a047b99f65607885ee7.tar.gz chat-a123b54d5ecd871feff94a047b99f65607885ee7.tar.bz2 chat-a123b54d5ecd871feff94a047b99f65607885ee7.zip |
remove notification as requested in PLT-6537 (#6412)
Diffstat (limited to 'app/notification.go')
-rw-r--r-- | app/notification.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go index 0f59fae21..4efdd3d6d 100644 --- a/app/notification.go +++ b/app/notification.go @@ -98,7 +98,9 @@ func SendNotifications(post *model.Post, team *model.Team, channel *model.Channe if len(potentialOtherMentions) > 0 { if result := <-Srv.Store.User().GetProfilesByUsernames(potentialOtherMentions, team.Id); result.Err == nil { outOfChannelMentions := result.Data.([]*model.User) - go sendOutOfChannelMentions(sender, post, team.Id, outOfChannelMentions) + if channel.Type != model.CHANNEL_GROUP { + go sendOutOfChannelMentions(sender, post, team.Id, outOfChannelMentions) + } } } |