From 27f0884b51059fd8ac1f9c49c0b4c904576fbaa7 Mon Sep 17 00:00:00 2001 From: Andrea Maria Piana Date: Wed, 14 Feb 2024 15:59:32 +0000 Subject: [PATCH] Exclude watch only accounts from permissions checks --- protocol/messenger_communities.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 74cb100ea..b5ab28b66 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -3920,7 +3920,9 @@ func (m *Messenger) CheckPermissionsToJoinCommunity(request *requests.CheckPermi } for _, a := range accounts { - addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex())) + if a.IsWalletNonWatchOnlyAccount() { + addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex())) + } } } else { for _, v := range request.Addresses {