Fix crash due to null data retention config parameter. (#7702)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
761322395e
Коммит
673df81669
@@ -1423,7 +1423,7 @@ func (o *Config) SetDefaults() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if o.DataRetentionSettings.EnableFileDeletion == nil {
|
if o.DataRetentionSettings.EnableFileDeletion == nil {
|
||||||
o.DataRetentionSettings.EnableMessageDeletion = NewBool(false)
|
o.DataRetentionSettings.EnableFileDeletion = NewBool(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if o.DataRetentionSettings.MessageRetentionDays == nil {
|
if o.DataRetentionSettings.MessageRetentionDays == nil {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user