[MM-42703] - Add configuration setting to disable Inactive Server email notification (#19831)
* [MM-42703] - Add configuration setting to disable Inactive Server email notification * remove log * add config to telemetry * fix lint
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
0efb7bf07d
Коммит
82c8bd33ed
@@ -1541,6 +1541,7 @@ type EmailSettings struct {
|
||||
LoginButtonColor *string `access:"experimental_features"`
|
||||
LoginButtonBorderColor *string `access:"experimental_features"`
|
||||
LoginButtonTextColor *string `access:"experimental_features"`
|
||||
EnableInactivityEmail *bool
|
||||
}
|
||||
|
||||
func (s *EmailSettings) SetDefaults(isUpdate bool) {
|
||||
@@ -1683,6 +1684,10 @@ func (s *EmailSettings) SetDefaults(isUpdate bool) {
|
||||
if s.LoginButtonTextColor == nil {
|
||||
s.LoginButtonTextColor = NewString("#2389D7")
|
||||
}
|
||||
|
||||
if s.EnableInactivityEmail == nil {
|
||||
s.EnableInactivityEmail = NewBool(true)
|
||||
}
|
||||
}
|
||||
|
||||
type RateLimitSettings struct {
|
||||
|
||||
Ссылка в новой задаче
Block a user