diff --git a/package-lock.json b/package-lock.json index 113fd694..dbfffb32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "pretty-bytes": "^6.1.1", "rxjs": "~7.4.0", "starwars-names": "^1.6.0", - "stream-chat": "^8.40.1", + "stream-chat": "^8.44.0", "ts-node": "^10.9.2", "tslib": "^2.3.0", "uuid": "^9.0.1", @@ -21996,9 +21996,9 @@ } }, "node_modules/stream-chat": { - "version": "8.40.1", - "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.40.1.tgz", - "integrity": "sha512-bkdgYjBK/4TGm3HP7/hnHUzui0ka2GjhzM4twBH3AIiVdzPLRrqNMavvOYZCI6Eio54ntylkb5EWXTJUHwxHpQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.44.0.tgz", + "integrity": "sha512-7HNtimD8sT/51rsFibGcD6uBgKj+vlKyYCZMDzjYQEaEsrLqyAg48dOyNM4L2FTF5aXgo9SlxZr21SPleeA2BA==", "dependencies": { "@babel/runtime": "^7.16.3", "@types/jsonwebtoken": "~9.0.0", @@ -39807,9 +39807,9 @@ } }, "stream-chat": { - "version": "8.40.1", - "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.40.1.tgz", - "integrity": "sha512-bkdgYjBK/4TGm3HP7/hnHUzui0ka2GjhzM4twBH3AIiVdzPLRrqNMavvOYZCI6Eio54ntylkb5EWXTJUHwxHpQ==", + "version": "8.44.0", + "resolved": "https://registry.npmjs.org/stream-chat/-/stream-chat-8.44.0.tgz", + "integrity": "sha512-7HNtimD8sT/51rsFibGcD6uBgKj+vlKyYCZMDzjYQEaEsrLqyAg48dOyNM4L2FTF5aXgo9SlxZr21SPleeA2BA==", "requires": { "@babel/runtime": "^7.16.3", "@types/jsonwebtoken": "~9.0.0", diff --git a/package.json b/package.json index 944e3591..370b9714 100644 --- a/package.json +++ b/package.json @@ -125,7 +125,7 @@ "pretty-bytes": "^6.1.1", "rxjs": "~7.4.0", "starwars-names": "^1.6.0", - "stream-chat": "^8.40.1", + "stream-chat": "^8.44.0", "ts-node": "^10.9.2", "tslib": "^2.3.0", "uuid": "^9.0.1", diff --git a/projects/stream-chat-angular/src/lib/channel.service.ts b/projects/stream-chat-angular/src/lib/channel.service.ts index a6e7b895..2560f127 100644 --- a/projects/stream-chat-angular/src/lib/channel.service.ts +++ b/projects/stream-chat-angular/src/lib/channel.service.ts @@ -17,6 +17,7 @@ import { Event, EventTypes, FormatMessageResponse, + MemberFilters, Message, MessageResponse, ReactionResponse, @@ -1075,7 +1076,7 @@ export class ChannelService< } const result = await activeChannel.queryMembers({ name: { $autocomplete: searchTerm }, - } as UserFilters); // TODO: find out why we need typecast here + } as MemberFilters); // TODO: find out why we need typecast here return result.members.filter( (m) => m.user_id !== this.chatClientService.chatClient?.user?.id