From 15347b552752dc71f518b3cb55bdeb3858c8b07f Mon Sep 17 00:00:00 2001 From: Chris Duarte Date: Tue, 19 Dec 2017 10:12:25 -0800 Subject: Allow default team to be configured (#7846) --- config/default.json | 3 ++- model/config.go | 1 + utils/config.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-1-g7c22