PLT-8350 "mention" when channel user count equals to max allowed num (#7976)

Этот коммит содержится в:
Siyuan Liu
2017-12-16 04:16:31 +08:00
коммит произвёл Chris
родитель 95bdb51f40
Коммит a37d53c732
2 изменённых файлов: 16 добавлений и 2 удалений

Просмотреть файл

@@ -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)