summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-12-19 18:51:23 -0500
committerGitHub <noreply@github.com>2017-12-19 18:51:23 -0500
commit0a2ffbc73797c5e95450d6ae65e4dc960b688da7 (patch)
treeaf1c597d6a986eba94d809096ad6ca9f6630e974
parent15347b552752dc71f518b3cb55bdeb3858c8b07f (diff)
downloadchat-0a2ffbc73797c5e95450d6ae65e4dc960b688da7.tar.gz
chat-0a2ffbc73797c5e95450d6ae65e4dc960b688da7.tar.bz2
chat-0a2ffbc73797c5e95450d6ae65e4dc960b688da7.zip
Set default for DefaultTeamName setting if not present in config (#7987)
-rw-r--r--model/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index 71b76096f..a8e0b0b07 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1021,6 +1021,10 @@ func (s *TeamSettings) SetDefaults() {
if s.ExperimentalTownSquareIsReadOnly == nil {
s.ExperimentalTownSquareIsReadOnly = NewBool(false)
}
+
+ if s.DefaultTeamName == nil {
+ s.DefaultTeamName = NewString("")
+ }
}
type ClientRequirements struct {