diff --git a/src/controllers/channels/dto.ts b/src/controllers/channels/dto.ts index 050c0eb7ac19c09352907ab82168cf34a189dd86..0c13084631c36d01d723e66c803aa855a1d24e39 100644 --- a/src/controllers/channels/dto.ts +++ b/src/controllers/channels/dto.ts @@ -495,6 +495,13 @@ export class GetChannelResponse extends GetChannelPublicResponse { @Type(() => RelationshipResponse) relationships: RelationshipResponse; + @IsBoolean() + @JSONSchema({ + description: 'Whether the channel allows private notifications to be sent.', + example: false, + }) + sendPrivate: boolean; + constructor(channel: Channel, subscribed: boolean, manage: boolean, send: boolean) { super(channel); this.subscribed = subscribed; @@ -505,6 +512,7 @@ export class GetChannelResponse extends GetChannelPublicResponse { channel.members?.length || 0, channel.groups?.length || 0, ); + this.sendPrivate = channel.sendPrivate; } }