fix(communities)_: ensure community ID is populated with description

Possibly fixes: status-im/status-desktop#16226
This commit is contained in:
Patryk Osmaczko 2024-10-03 19:14:26 +02:00
parent 74ae411548
commit e6238e9288
1 changed files with 6 additions and 0 deletions

View File

@ -1628,6 +1628,12 @@ func (o *Community) marshaledDescription() ([]byte, error) {
}
}
// Ensure that communities created prior to the introduction of tokenized ownership
// propagate community ID through the description.
if len(clone.ID) == 0 {
clone.ID = o.IDString()
}
return proto.Marshal(clone)
}