diff options
author | George Goldberg <george@gberg.me> | 2017-10-24 13:18:13 +0100 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-24 08:18:13 -0400 |
commit | 673df81669ebb1f8ec278f3cb86fadcc09f5d030 (patch) | |
tree | f341d155aa68c1ae32f349eee591b8a6627d9a87 /model | |
parent | 761322395e54b52f20c3bd978db4897fabe49879 (diff) | |
download | chat-673df81669ebb1f8ec278f3cb86fadcc09f5d030.tar.gz chat-673df81669ebb1f8ec278f3cb86fadcc09f5d030.tar.bz2 chat-673df81669ebb1f8ec278f3cb86fadcc09f5d030.zip |
Fix crash due to null data retention config parameter. (#7702)
Diffstat (limited to 'model')
-rw-r--r-- | model/config.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/model/config.go b/model/config.go index 9f02d7713..d3446f533 100644 --- a/model/config.go +++ b/model/config.go @@ -1423,7 +1423,7 @@ func (o *Config) SetDefaults() { } if o.DataRetentionSettings.EnableFileDeletion == nil { - o.DataRetentionSettings.EnableMessageDeletion = NewBool(false) + o.DataRetentionSettings.EnableFileDeletion = NewBool(false) } if o.DataRetentionSettings.MessageRetentionDays == nil { |