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
Этот коммит содержится в:
Chris Duarte
2017-11-24 09:57:02 -08:00
коммит произвёл Joram Wilander
родитель 7ac35548c8
Коммит fdbfb9a4ed
3 изменённых файлов: 8 добавлений и 0 удалений

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

@@ -653,6 +653,7 @@ type EmailSettings struct {
EnableSignInWithEmail *bool
EnableSignInWithUsername *bool
SendEmailNotifications bool
UseChannelInEmailNotifications *bool
RequireEmailVerification bool
FeedbackName string
FeedbackEmail string
@@ -687,6 +688,10 @@ func (s *EmailSettings) SetDefaults() {
s.EnableSignInWithUsername = NewBool(false)
}
if s.UseChannelInEmailNotifications == nil {
s.UseChannelInEmailNotifications = NewBool(false)
}
if s.SendPushNotifications == nil {
s.SendPushNotifications = NewBool(false)
}