From 5a63e0ea176c5cc316af3aa8ff275b0d72668623 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Thu, 9 May 2024 19:02:40 +0500 Subject: [PATCH] Fix spaces popup (#5559) Signed-off-by: Denis Bykhov --- packages/presentation/src/components/SpacesPopup.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/presentation/src/components/SpacesPopup.svelte b/packages/presentation/src/components/SpacesPopup.svelte index a4d3d785fb..00d0d5a82c 100644 --- a/packages/presentation/src/components/SpacesPopup.svelte +++ b/packages/presentation/src/components/SpacesPopup.svelte @@ -51,6 +51,7 @@ $: query.query( _class, { + members: me, ...(spaceQuery ?? {}), ...(search !== undefined && search !== '' ? { @@ -59,7 +60,7 @@ : {}) }, (res) => { - spaces = res.filter((p) => !p.private || p.members.includes(me)) + spaces = res }, spaceOptions )