Skip to content

Commit

Permalink
Adjust example defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
arnautov-anton committed Dec 11, 2024
1 parent 8c20bb6 commit 8292210
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/vite/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ const userId = parseUserIdFromToken(userToken);
const filters: ChannelFilters = {
members: { $in: [userId] },
type: 'messaging',
archived: false,
};
const options: ChannelOptions = { limit: 3, presence: true, state: true };
const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
const options: ChannelOptions = { limit: 5, presence: true, state: true };
const sort: ChannelSort = [{ pinned_at: 1 }, { last_message_at: -1 }, { updated_at: -1 }];

type LocalAttachmentType = Record<string, unknown>;
type LocalChannelType = Record<string, unknown>;
Expand Down

0 comments on commit 8292210

Please sign in to comment.