diff options
author | Chris Duarte <csduarte@users.noreply.github.com> | 2017-12-19 10:12:25 -0800 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-12-19 10:12:25 -0800 |
commit | 15347b552752dc71f518b3cb55bdeb3858c8b07f (patch) | |
tree | 3fd5602c488fcdfe045c950bd2921c56fb123c71 | |
parent | 917e2417cfcbefe25293884fd0e8bd8801a5c8bb (diff) | |
download | chat-15347b552752dc71f518b3cb55bdeb3858c8b07f.tar.gz chat-15347b552752dc71f518b3cb55bdeb3858c8b07f.tar.bz2 chat-15347b552752dc71f518b3cb55bdeb3858c8b07f.zip |
Allow default team to be configured (#7846)
-rw-r--r-- | config/default.json | 3 | ||||
-rw-r--r-- | model/config.go | 1 | ||||
-rw-r--r-- | utils/config.go | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/config/default.json b/config/default.json index d772f2576..e264a7c3d 100644 --- a/config/default.json +++ b/config/default.json @@ -82,7 +82,8 @@ "MaxNotificationsPerChannel": 1000, "EnableConfirmNotificationsToChannel": true, "TeammateNameDisplay": "username", - "ExperimentalTownSquareIsReadOnly": false + "ExperimentalTownSquareIsReadOnly": false, + "DefaultTeamName": "" }, "ClientRequirements": { "AndroidLatestVersion": "", diff --git a/model/config.go b/model/config.go index 918d15b9a..71b76096f 100644 --- a/model/config.go +++ b/model/config.go @@ -925,6 +925,7 @@ type TeamSettings struct { EnableConfirmNotificationsToChannel *bool TeammateNameDisplay *string ExperimentalTownSquareIsReadOnly *bool + DefaultTeamName *string } func (s *TeamSettings) SetDefaults() { diff --git a/utils/config.go b/utils/config.go index 180bd7fea..8435c36cf 100644 --- a/utils/config.go +++ b/utils/config.go @@ -463,6 +463,7 @@ func getClientConfig(c *model.Config) map[string]string { props["RestrictPrivateChannelManageMembers"] = *c.TeamSettings.RestrictPrivateChannelManageMembers props["EnableXToLeaveChannelsFromLHS"] = strconv.FormatBool(*c.TeamSettings.EnableXToLeaveChannelsFromLHS) props["TeammateNameDisplay"] = *c.TeamSettings.TeammateNameDisplay + props["DefaultTeamName"] = *c.TeamSettings.DefaultTeamName props["AndroidLatestVersion"] = c.ClientRequirements.AndroidLatestVersion props["AndroidMinVersion"] = c.ClientRequirements.AndroidMinVersion |