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

Этот коммит содержится в:
George Goldberg
2017-10-24 13:18:13 +01:00
коммит произвёл Joram Wilander
родитель 761322395e
Коммит 673df81669

Просмотреть файл

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