From 62e5e2fda8d70d7f0b2cd3f47360a06134db58f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Wed, 20 Sep 2017 17:38:27 +0200 Subject: PLT-7508: Add settings to disable wide mention confirmation (#7416) --- model/config.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'model') diff --git a/model/config.go b/model/config.go index 27fdb90ce..64bfc06ce 100644 --- a/model/config.go +++ b/model/config.go @@ -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 -- cgit v1.2.3-1-g7c22