From 3ddec465c59634b8a1e70bf856f053276c201d44 Mon Sep 17 00:00:00 2001 From: Patryk Osmaczko Date: Thu, 11 Jan 2024 22:47:37 +0100 Subject: [PATCH] fix: restore FetchCommunity&TryDatabase fallback to store nodes Add missing check caused by recent `communities.GetByID` refactoring. --- protocol/messenger_communities.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index c38f368f1..8a96601b2 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -2565,7 +2565,7 @@ func (m *Messenger) FetchCommunity(request *FetchCommunityRequest) (*communities if request.TryDatabase { community, err := m.FindCommunityInfoFromDB(communityID) - if err != nil { + if err != nil && err != communities.ErrOrgNotFound { return nil, err } if community != nil {