From 539f66313d4f23231aba73119dfc2e8340df1400 Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 30 Oct 2017 12:52:47 -0500 Subject: Add autoclose dm config parameter (#7734) * add autoclose dm config parameter * update naming --- model/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'model') diff --git a/model/config.go b/model/config.go index 6cc7251b8..17b7e87e6 100644 --- a/model/config.go +++ b/model/config.go @@ -204,6 +204,7 @@ type ServiceSettings struct { EnableChannelViewedMessages *bool EnableUserStatuses *bool ClusterLogTimeoutMilliseconds *int + CloseUnusedDirectMessages *bool } type ClusterSettings struct { @@ -1376,6 +1377,10 @@ func (o *Config) SetDefaults() { o.ServiceSettings.ClusterLogTimeoutMilliseconds = NewInt(2000) } + if o.ServiceSettings.CloseUnusedDirectMessages == nil { + o.ServiceSettings.CloseUnusedDirectMessages = NewBool(false) + } + if o.ElasticsearchSettings.ConnectionUrl == nil { o.ElasticsearchSettings.ConnectionUrl = NewString(ELASTICSEARCH_SETTINGS_DEFAULT_CONNECTION_URL) } -- cgit v1.2.3-1-g7c22