Skip to content

Commit 581687e

Browse files
committed
chore: update demo
1 parent a2aee8c commit 581687e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

examples/typescript/src/App.tsx

+1-8
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ const filters: ChannelFilters = { type: 'messaging', members: { $in: [userId] }
3232
const options: ChannelOptions = { state: true, presence: true, limit: 10 };
3333
const sort: ChannelSort = { last_message_at: -1, updated_at: -1 };
3434

35-
type LocalAttachmentType = Record<string, unknown>;
36-
type LocalChannelType = Record<string, unknown>;
37-
type LocalCommandType = string;
38-
type LocalEventType = Record<string, unknown>;
39-
type LocalMessageType = Record<string, unknown>;
40-
type LocalReactionType = Record<string, unknown>;
41-
type LocalUserType = Record<string, unknown>;
42-
4335
const App = () => {
4436
const chatClient = useCreateChatClient({
4537
apiKey,
@@ -52,6 +44,7 @@ const App = () => {
5244
if (chatClient) {
5345
const { reactions } = await chatClient.queryReactions('dummy', {});
5446
console.log(reactions[0].customReactionField);
47+
console.log(reactions[0].user?.customUserField);
5548
}
5649
})();
5750
}, [chatClient]);

0 commit comments

Comments
 (0)