summaryrefslogtreecommitdiffstats
path: root/model/config.go
diff options
context:
space:
mode:
authorDaniel Schalla <daniel@schalla.me>2018-07-20 23:00:58 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2018-07-20 17:00:58 -0400
commit3539a9a60b24bd9c0c1360b17c8fe3e6ebf8cf3c (patch)
treed4913b503841b94b435d75febabb43a0e55c4ed3 /model/config.go
parent6104c37761deb8f06ea4af8838db12b8158318be (diff)
downloadchat-3539a9a60b24bd9c0c1360b17c8fe3e6ebf8cf3c.tar.gz
chat-3539a9a60b24bd9c0c1360b17c8fe3e6ebf8cf3c.tar.bz2
chat-3539a9a60b24bd9c0c1360b17c8fe3e6ebf8cf3c.zip
Default Channel Functionality + Test Suite (#9068)
gofmt Make skipping for non public channels default Deduplication of Default Channels; Only post join to townsquare Post join channel message for all custom default channels
Diffstat (limited to 'model/config.go')
-rw-r--r--model/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/model/config.go b/model/config.go
index d40851a9a..f24abfe83 100644
--- a/model/config.go
+++ b/model/config.go
@@ -1105,6 +1105,7 @@ type TeamSettings struct {
ExperimentalHideTownSquareinLHS *bool
ExperimentalTownSquareIsReadOnly *bool
ExperimentalPrimaryTeam *string
+ ExperimentalDefaultChannels []string
}
func (s *TeamSettings) SetDefaults() {
@@ -1217,6 +1218,10 @@ func (s *TeamSettings) SetDefaults() {
s.ExperimentalPrimaryTeam = NewString("")
}
+ if s.ExperimentalDefaultChannels == nil {
+ s.ExperimentalDefaultChannels = []string{}
+ }
+
if s.EnableTeamCreation == nil {
s.EnableTeamCreation = NewBool(true)
}