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
Этот коммит содержится в:
Daniel Schalla
2018-07-20 23:00:58 +02:00
коммит произвёл Harrison Healey
родитель 6104c37761
Коммит 3539a9a60b
4 изменённых файлов: 95 добавлений и 58 удалений

Просмотреть файл

@@ -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)
}