Этот коммит содержится в:
Christopher Speller
2017-01-10 16:17:08 -05:00
коммит произвёл Harrison Healey
родитель 189a745030
Коммит 5be99e1f85

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

@@ -905,11 +905,13 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
for i := range teams {
if teams[i].Id == team.Id {
found = true
team = teams[i]
break
}
}
if !found && len(teams) > 0 {
if !found {
if len(teams) > 0 {
team = teams[0]
} else {
// in case the user hasn't joined any teams we send them to the select_team page
@@ -917,6 +919,7 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
}
}
}
}
if *utils.Cfg.EmailSettings.EnableEmailBatching {
var sendBatched bool