diff --git a/config/client.go b/config/client.go index cfa966ab36..1e59ccd0b8 100644 --- a/config/client.go +++ b/config/client.go @@ -23,6 +23,7 @@ func GenerateClientConfig(c *model.Config, diagnosticId string, license *model.L props["ExperimentalPrimaryTeam"] = *c.TeamSettings.ExperimentalPrimaryTeam props["ExperimentalViewArchivedChannels"] = strconv.FormatBool(*c.TeamSettings.ExperimentalViewArchivedChannels) + props["CreateBotAccounts"] = strconv.FormatBool(*c.ServiceSettings.CreateBotAccounts) props["EnableOAuthServiceProvider"] = strconv.FormatBool(*c.ServiceSettings.EnableOAuthServiceProvider) props["GoogleDeveloperKey"] = *c.ServiceSettings.GoogleDeveloperKey props["EnableIncomingWebhooks"] = strconv.FormatBool(*c.ServiceSettings.EnableIncomingWebhooks) @@ -198,6 +199,8 @@ func GenerateLimitedClientConfig(c *model.Config, diagnosticId string, license * props["BuildHashEnterprise"] = model.BuildHashEnterprise props["BuildEnterpriseReady"] = model.BuildEnterpriseReady + props["CreateBotAccounts"] = strconv.FormatBool(*c.ServiceSettings.CreateBotAccounts) + props["SiteName"] = *c.TeamSettings.SiteName props["WebsocketURL"] = strings.TrimRight(*c.ServiceSettings.WebsocketURL, "/") props["WebsocketPort"] = fmt.Sprintf("%v", *c.ServiceSettings.WebsocketPort)