fix: restore FetchCommunity&TryDatabase fallback to store nodes

Add missing check caused by recent `communities.GetByID` refactoring.
This commit is contained in:
Patryk Osmaczko 2024-01-11 22:47:37 +01:00 committed by osmaczko
parent 3a00c3fb9d
commit 3ddec465c5
1 changed files with 1 additions and 1 deletions

View File

@ -2565,7 +2565,7 @@ func (m *Messenger) FetchCommunity(request *FetchCommunityRequest) (*communities
if request.TryDatabase { if request.TryDatabase {
community, err := m.FindCommunityInfoFromDB(communityID) community, err := m.FindCommunityInfoFromDB(communityID)
if err != nil { if err != nil && err != communities.ErrOrgNotFound {
return nil, err return nil, err
} }
if community != nil { if community != nil {