We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c20bb6 commit 8292210Copy full SHA for 8292210
examples/vite/src/App.tsx
@@ -35,9 +35,10 @@ const userId = parseUserIdFromToken(userToken);
35
const filters: ChannelFilters = {
36
members: { $in: [userId] },
37
type: 'messaging',
38
+ archived: false,
39
};
-const options: ChannelOptions = { limit: 3, presence: true, state: true };
40
-const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
+const options: ChannelOptions = { limit: 5, presence: true, state: true };
41
+const sort: ChannelSort = [{ pinned_at: 1 }, { last_message_at: -1 }, { updated_at: -1 }];
42
43
type LocalAttachmentType = Record<string, unknown>;
44
type LocalChannelType = Record<string, unknown>;
0 commit comments