summaryrefslogtreecommitdiffstats
path: root/utils/config.go
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-07-22 10:53:57 -0400
committerGitHub <noreply@github.com>2016-07-22 10:53:57 -0400
commit9c2c941449c387b2407d10c101f39a2266a2e65a (patch)
tree4e4d3455fff32a07a0b9509d82aebdd235e37447 /utils/config.go
parent946302d9a29cbf5702da9e18a52b59864a18c69e (diff)
downloadchat-9c2c941449c387b2407d10c101f39a2266a2e65a.tar.gz
chat-9c2c941449c387b2407d10c101f39a2266a2e65a.tar.bz2
chat-9c2c941449c387b2407d10c101f39a2266a2e65a.zip
PLT-1866/PLT-3509 Added links to download the native apps (#3651)
* PLT-1866 Added configurable links for native app downloads * PLT-1866 Added native app download link to main menu * PLT-3509 Added native app link to tutorial * PLT-3509 Added native app link to welcome email * PLT-3509 Made link to apps in welcome email conditional on being set
Diffstat (limited to 'utils/config.go')
-rw-r--r--utils/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index cbae0e2cb..39dbca4d8 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -264,6 +264,10 @@ func getClientConfig(c *model.Config) map[string]string {
props["RestrictCustomEmojiCreation"] = *c.ServiceSettings.RestrictCustomEmojiCreation
props["MaxFileSize"] = strconv.FormatInt(*c.FileSettings.MaxFileSize, 10)
+ props["AppDownloadLink"] = *c.NativeAppSettings.AppDownloadLink
+ props["AndroidAppDownloadLink"] = *c.NativeAppSettings.AndroidAppDownloadLink
+ props["IosAppDownloadLink"] = *c.NativeAppSettings.IosAppDownloadLink
+
if IsLicensed {
if *License.Features.CustomBrand {
props["EnableCustomBrand"] = strconv.FormatBool(*c.TeamSettings.EnableCustomBrand)