Replace Channel Name for Team in Email Notifications (#7839)
* allow option to set channel name in email notification subject * Added TeamName to title when UseChannelInEmailNotifications=true
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
7ac35548c8
Коммит
fdbfb9a4ed
@@ -351,6 +351,8 @@ func (a *App) sendNotificationEmail(post *model.Post, user *model.User, channel
|
||||
var subjectText string
|
||||
if channel.Type == model.CHANNEL_DIRECT {
|
||||
subjectText = getDirectMessageNotificationEmailSubject(post, translateFunc, a.Config().TeamSettings.SiteName, senderName)
|
||||
} else if *a.Config().EmailSettings.UseChannelInEmailNotifications {
|
||||
subjectText = getNotificationEmailSubject(post, translateFunc, a.Config().TeamSettings.SiteName, team.DisplayName+" ("+channel.DisplayName+")")
|
||||
} else {
|
||||
subjectText = getNotificationEmailSubject(post, translateFunc, a.Config().TeamSettings.SiteName, team.DisplayName)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user