Skip to content

Commit 5344d2c

Browse files
authored
feat: add show_channels flag to campaigns (#1513)
## Linear - https://linear.app/stream/issue/CHA-214/handle-hidden-channels-as-part-of-campaigns ## Summary Introduce a new `show_channels` flag to let campaigns show the hidden channels. ## 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 6df96c3 commit 5344d2c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/campaign.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class Campaign<StreamChatGenerics extends ExtendableGenerics = DefaultGen
2121
sender_mode: this.data?.sender_mode,
2222
channel_template: this.data?.channel_template,
2323
create_channels: this.data?.create_channels,
24+
show_channels: this.data?.show_channels,
2425
description: this.data?.description,
2526
name: this.data?.name,
2627
user_ids: this.data?.user_ids,

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,6 +3074,7 @@ export type CampaignData = {
30743074
segment_ids?: string[];
30753075
sender_id?: string;
30763076
sender_mode?: 'exclude' | 'include' | null;
3077+
show_channels?: boolean;
30773078
skip_push?: boolean;
30783079
skip_webhook?: boolean;
30793080
user_ids?: string[];

0 commit comments

Comments
 (0)