summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2018-03-09 12:16:27 -0500
committerDerrick Anderson <derrick@andersonwebstudio.com>2018-03-09 12:16:27 -0500
commit22f2245a26a0414f2c4c79d3852a94504d474714 (patch)
tree477980ea00e4425ec54fa2274b5b0de2770fa18a /app/notification.go
parent3922b3ac8c8bcf8c2701be0f5d9496cfa3981bbb (diff)
downloadchat-22f2245a26a0414f2c4c79d3852a94504d474714.tar.gz
chat-22f2245a26a0414f2c4c79d3852a94504d474714.tar.bz2
chat-22f2245a26a0414f2c4c79d3852a94504d474714.zip
ICU-682 Stopped sending out of channel mention warnings for system messages (#8426)
Diffstat (limited to 'app/notification.go')
-rw-r--r--app/notification.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/notification.go b/app/notification.go
index 8cb63fbaf..9a8096bbf 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -89,7 +89,7 @@ func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *mod
delete(mentionedUserIds, post.UserId)
}
- if len(m.OtherPotentialMentions) > 0 {
+ if len(m.OtherPotentialMentions) > 0 && !post.IsSystemMessage() {
if result := <-a.Srv.Store.User().GetProfilesByUsernames(m.OtherPotentialMentions, team.Id); result.Err == nil {
outOfChannelMentions := result.Data.([]*model.User)
if channel.Type != model.CHANNEL_GROUP {