Skip to content

Commit 680d19a

Browse files
committedNov 28, 2024·
What
1 parent 2d75575 commit 680d19a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎src/client.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -932,8 +932,9 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG
932932
set.add(factory);
933933

934934
return () => {
935+
// @ts-expect-error
935936
set.delete(factory);
936-
937+
// @ts-expect-error
937938
if (!set.size) {
938939
this.targetFactoriesByType.delete(eventType);
939940
}

‎src/thread.ts

+2
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ export type ThreadReadState<SCG extends ExtendableGenerics = DefaultGenerics> =
6363
>;
6464

6565
// TODO: figure out generics here
66+
// @ts-expect-error
6667
const messageNewFactory: TargetFactory<DefaultGenerics, 'message.new'> = (event) => {
6768
return event.parent_id ? `message.new-${event.parent_id}` : null;
6869
};
70+
// @ts-expect-error
6971
const threadMessageReadFactory: TargetFactory<DefaultGenerics, 'message.read'> = (event) => {
7072
return event.thread ? `message.read-${event.thread.parent_message_id}` : null;
7173
};

0 commit comments

Comments
 (0)
Please sign in to comment.