From 390d706b3fb994ce811495fd9b67d2818ce07160 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 29 Feb 2024 16:25:34 -0500 Subject: [PATCH] fix: fix permission criteria being empty (#4841) Fixes https://github.com/status-im/status-desktop/issues/13775 --- protocol/communities/persistence.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocol/communities/persistence.go b/protocol/communities/persistence.go index f15d7a54c..10267394b 100644 --- a/protocol/communities/persistence.go +++ b/protocol/communities/persistence.go @@ -591,6 +591,9 @@ func (p *Persistence) GetPermissionTokenCriteriaResult(permissionID string, comm criteria := make([]bool, 0) for _, r := range strings.Split(criteriaString, ",") { + if r == "" { + continue + } val, err := strconv.ParseBool(r) if err != nil { return nil, err