summaryrefslogtreecommitdiffstats
path: root/app/notification.go
diff options
context:
space:
mode:
authorSiyuan Liu <liusy182@hotmail.com>2017-12-16 04:16:31 +0800
committerChris <ccbrown112@gmail.com>2017-12-15 14:16:31 -0600
commita37d53c732a0da0aa5fa8825ee917c5f57656a87 (patch)
tree088eda3f9b03fe4c5ecd3f7cab18aebc43491ef4 /app/notification.go
parent95bdb51f4070e7bdb246798106beab6e4c1e11a6 (diff)
downloadchat-a37d53c732a0da0aa5fa8825ee917c5f57656a87.tar.gz
chat-a37d53c732a0da0aa5fa8825ee917c5f57656a87.tar.bz2
chat-a37d53c732a0da0aa5fa8825ee917c5f57656a87.zip
PLT-8350 "mention" when channel user count equals to max allowed num (#7976)
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 3b21e86c5..a7093e17f 100644
--- a/app/notification.go
+++ b/app/notification.go
@@ -935,7 +935,7 @@ func (a *App) GetMentionKeywordsInChannel(profiles map[string]*model.User, lookF
// Add @channel and @all to keywords if user has them turned on
if lookForSpecialMentions {
- if int64(len(profiles)) < *a.Config().TeamSettings.MaxNotificationsPerChannel && profile.NotifyProps["channel"] == "true" {
+ if int64(len(profiles)) <= *a.Config().TeamSettings.MaxNotificationsPerChannel && profile.NotifyProps["channel"] == "true" {
keywords["@channel"] = append(keywords["@channel"], profile.Id)
keywords["@all"] = append(keywords["@all"], profile.Id)