Skip to content

Commit 29bca32

Browse files
committed
chore(demo): fix the filters
1 parent da2ad4a commit 29bca32

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

examples/vite/src/App.tsx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,18 @@ const App = () => {
291291
{ type: 'public' },
292292
// public example channels
293293
{
294-
cid: {
295-
$in: ['random', 'general', 'music', 'jokes'].map(
296-
(channelId) => `messaging:${channelId}`,
297-
),
298-
},
294+
$and: [
295+
{
296+
cid: {
297+
$in: ['random', 'general', 'music', 'jokes'].map(
298+
(channelId) => `messaging:${channelId}`,
299+
),
300+
},
301+
},
302+
{
303+
members: { $in: [userId] },
304+
},
305+
],
299306
},
300307
],
301308
}),

0 commit comments

Comments
 (0)