PLT-7508: Add settings to disable wide mention confirmation (#7416)

Этот коммит содержится в:
Jesús Espino
2017-09-20 17:38:27 +02:00
коммит произвёл Harrison Healey
родитель 3a80225d61
Коммит 62e5e2fda8
4 изменённых файлов: 9 добавлений и 0 удалений

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

@@ -368,6 +368,7 @@ type TeamSettings struct {
UserStatusAwayTimeout *int64
MaxChannelsPerTeam *int64
MaxNotificationsPerChannel *int64
EnableConfirmNotificationsToChannel *bool
TeammateNameDisplay *string
ExperimentalTownSquareIsReadOnly *bool
}
@@ -855,6 +856,11 @@ func (o *Config) SetDefaults() {
*o.TeamSettings.MaxNotificationsPerChannel = 1000
}
if o.TeamSettings.EnableConfirmNotificationsToChannel == nil {
o.TeamSettings.EnableConfirmNotificationsToChannel = new(bool)
*o.TeamSettings.EnableConfirmNotificationsToChannel = true
}
if o.TeamSettings.ExperimentalTownSquareIsReadOnly == nil {
o.TeamSettings.ExperimentalTownSquareIsReadOnly = new(bool)
*o.TeamSettings.ExperimentalTownSquareIsReadOnly = false