diff options
author | George Goldberg <george@gberg.me> | 2017-10-23 20:21:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-23 20:21:26 +0100 |
commit | 761322395e54b52f20c3bd978db4897fabe49879 (patch) | |
tree | ec9f70c2023794ab16556273f14b9001e8d18f43 /utils | |
parent | 78a9774147c91407be3fb925b52336174854e632 (diff) | |
download | chat-761322395e54b52f20c3bd978db4897fabe49879.tar.gz chat-761322395e54b52f20c3bd978db4897fabe49879.tar.bz2 chat-761322395e54b52f20c3bd978db4897fabe49879.zip |
PLT-7743: Data retention in client side config. (#7695)
Diffstat (limited to 'utils')
-rw-r--r-- | utils/config.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go index 2a956dd4a..8611be975 100644 --- a/utils/config.go +++ b/utils/config.go @@ -578,6 +578,13 @@ func getClientConfig(c *model.Config) map[string]string { props["AllowCustomThemes"] = strconv.FormatBool(*c.ThemeSettings.AllowCustomThemes) props["AllowedThemes"] = strings.Join(c.ThemeSettings.AllowedThemes, ",") } + + if *License.Features.DataRetention { + props["DataRetentionEnableMessageDeletion"] = strconv.FormatBool(*c.DataRetentionSettings.EnableMessageDeletion) + props["DataRetentionMessageRetentionDays"] = strconv.FormatInt(int64(*c.DataRetentionSettings.MessageRetentionDays), 10) + props["DataRetentionEnableFileDeletion"] = strconv.FormatBool(*c.DataRetentionSettings.EnableFileDeletion) + props["DataRetentionFileRetentionDays"] = strconv.FormatInt(int64(*c.DataRetentionSettings.FileRetentionDays), 10) + } } return props |