From a37d53c732a0da0aa5fa8825ee917c5f57656a87 Mon Sep 17 00:00:00 2001 From: Siyuan Liu Date: Sat, 16 Dec 2017 04:16:31 +0800 Subject: PLT-8350 "mention" when channel user count equals to max allowed num (#7976) --- app/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/notification.go') 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) -- cgit v1.2.3-1-g7c22