From e6238e9288c29149c96dab3560ec67452354c985 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Thu, 3 Oct 2024 19:14:26 +0200 Subject: [PATCH] fix(communities)_: ensure community ID is populated with description Possibly fixes: status-im/status-desktop#16226 --- protocol/communities/community.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/protocol/communities/community.go b/protocol/communities/community.go index 50dd6e76e..39cc9232e 100644 --- a/protocol/communities/community.go +++ b/protocol/communities/community.go @@ -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) }