Fix crash due to null data retention config parameter. (#7702)

This commit is contained in:
George Goldberg
2017-10-24 13:18:13 +01:00
committed by Joram Wilander
parent 761322395e
commit 673df81669

View File

@@ -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 {