Show invite-only instances for login

This commit is contained in:
Grishka 2022-04-15 15:23:52 +03:00
parent 3928eee1df
commit 19d0af01fd
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ public class InstanceCatalogFragment extends BaseRecyclerFragment<CatalogInstanc
for(CatalogInstance instance:data){
if(currentCategory.equals("all") || instance.categories.contains(currentCategory)){
if(TextUtils.isEmpty(currentSearchQuery) || instance.domain.contains(currentSearchQuery)){
if(instance.domain.equals(currentSearchQuery) || !instance.approvalRequired)
if(instance.domain.equals(currentSearchQuery) || !isSignup || !instance.approvalRequired)
filteredData.add(instance);
}
}