diff --git a/src/client.ts b/src/client.ts index 8d89cd42b..4585d2963 100644 --- a/src/client.ts +++ b/src/client.ts @@ -930,8 +930,9 @@ export class StreamChat { + // @ts-expect-error set.delete(factory); - + // @ts-expect-error if (!set.size) { this.targetFactoriesByType.delete(eventType); } diff --git a/src/thread.ts b/src/thread.ts index c3181ab9f..1461d461c 100644 --- a/src/thread.ts +++ b/src/thread.ts @@ -63,9 +63,11 @@ export type ThreadReadState = >; // TODO: figure out generics here +// @ts-expect-error const messageNewFactory: TargetFactory = (event) => { return event.parent_id ? `message.new-${event.parent_id}` : null; }; +// @ts-expect-error const threadMessageReadFactory: TargetFactory = (event) => { return event.thread ? `message.read-${event.thread.parent_message_id}` : null; };