mirror of
https://github.com/status-im/status-go.git
synced 2025-01-09 22:26:30 +00:00
a6194ffad4
The `Edit()` method on `Community` merely updates "primitive" values that live inside a community description. For any data that is more complex, we typically have dedicated methods. Because `Edit()` was expecting `CommunityTokensMetadata`, it would override it with empty data every time we would edit a community. This is because we typically don't update that kind of data as part of `Edit()`. In addition, `CommunityTokensMetadata` is append-only anyways, so there wouldn't be any other way to update that field, other than adding new items to it, which is done in a dedicated method.