Skip to content

Commit 9b580b0

Browse files
SubashPradhansubash pradhan
andauthored
feat: add app_banned and has_unread properties to ChannelFilters (#1649)
## CLA - [YES] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required). - [YES] Code changes are tested ## Description of the changes, What, Why and How? - The QueryChannels filter currently supports `app_banned` in the filter: https://getstream.io/chat/docs/javascript/query_channels/ - But this is not included in the Filter types, causing TS error <img width="1142" height="403" alt="Screenshot 2025-11-07 at 10 47 30" src="https://github.com/user-attachments/assets/19874bf5-01d4-47b9-9ad8-908f317df06b" /> - Add `app_banned` type to the Channel Filter types ## Changelog - --------- Co-authored-by: subash pradhan <[email protected]>
1 parent 48f3c8e commit 9b580b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1753,6 +1753,8 @@ export type ReactionFilters = QueryFilters<
17531753

17541754
export type ChannelFilters = QueryFilters<
17551755
ContainsOperator<Omit<CustomChannelData, 'name'>> & {
1756+
app_banned?: 'only' | 'excluded';
1757+
has_unread?: boolean;
17561758
archived?: boolean;
17571759
'member.user.name'?:
17581760
| RequireOnlyOne<{

0 commit comments

Comments
 (0)