diff options
author | Chris Duarte <csduarte@users.noreply.github.com> | 2017-12-08 11:15:48 -0800 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-12-08 11:15:48 -0800 |
commit | 7ed1177a2b676aa4c93515268642c855cfe57a37 (patch) | |
tree | 096349fc1d36d2ee7ace7437ab3cad15234fd5d6 /model/config.go | |
parent | 0cdf969ac71440cd52dd5b069a9068a9e5d49bd3 (diff) | |
download | chat-7ed1177a2b676aa4c93515268642c855cfe57a37.tar.gz chat-7ed1177a2b676aa4c93515268642c855cfe57a37.tar.bz2 chat-7ed1177a2b676aa4c93515268642c855cfe57a37.zip |
add config option to hide tutorial screens (#7840)
Diffstat (limited to 'model/config.go')
-rw-r--r-- | model/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go index 544f9b33f..918d15b9a 100644 --- a/model/config.go +++ b/model/config.go @@ -212,6 +212,7 @@ type ServiceSettings struct { ClusterLogTimeoutMilliseconds *int CloseUnusedDirectMessages *bool EnablePreviewFeatures *bool + EnableTutorial *bool } func (s *ServiceSettings) SetDefaults() { @@ -331,6 +332,10 @@ func (s *ServiceSettings) SetDefaults() { s.CloseUnusedDirectMessages = NewBool(false) } + if s.EnableTutorial == nil { + s.EnableTutorial = NewBool(true) + } + if s.SessionLengthWebInDays == nil { s.SessionLengthWebInDays = NewInt(30) } |