Skip to content

Commit 8292210

Browse files
Adjust example defaults
1 parent 8c20bb6 commit 8292210

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/vite/src/App.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ const userId = parseUserIdFromToken(userToken);
3535
const filters: ChannelFilters = {
3636
members: { $in: [userId] },
3737
type: 'messaging',
38+
archived: false,
3839
};
39-
const options: ChannelOptions = { limit: 3, presence: true, state: true };
40-
const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
40+
const options: ChannelOptions = { limit: 5, presence: true, state: true };
41+
const sort: ChannelSort = [{ pinned_at: 1 }, { last_message_at: -1 }, { updated_at: -1 }];
4142

4243
type LocalAttachmentType = Record<string, unknown>;
4344
type LocalChannelType = Record<string, unknown>;

0 commit comments

Comments
 (0)