Skip to content

Commit c58fd6f

Browse files
authored
feat: add channel message count response fields (#1594)
## CLA - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required). - [ ] Code changes are tested ## Description of the changes, What, Why and How? ## Changelog -
1 parent 15e5407 commit c58fd6f

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
@@ -287,6 +287,7 @@ export type ChannelResponse = CustomChannelData & {
287287
last_message_at?: string;
288288
member_count?: number;
289289
members?: ChannelMemberResponse[];
290+
message_count?: number;
290291
muted?: boolean;
291292
mute_expires_at?: string;
292293
own_capabilities?: string[];
@@ -2365,6 +2366,7 @@ export type ChannelConfigFields = {
23652366
replies?: boolean;
23662367
search?: boolean;
23672368
shared_locations?: boolean;
2369+
count_messages?: boolean; // Feature flag for message count
23682370
typing_events?: boolean;
23692371
uploads?: boolean;
23702372
url_enrichment?: boolean;

0 commit comments

Comments
 (0)