Skip to content

Commit 3c75c12

Browse files
authored
feat: add hide_history_before option for adding members (#1645)
## 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? When adding members to a channel, it is now possible to not only hide all channel history for them (via hide_history), but also select a timestamp in the past via hide_history_before. Any activity before that will be hidden. This PR adds an option to enable this feature. ## Changelog - feat: add hide_history_before option for adding members
1 parent 8612079 commit 3c75c12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ export type ChannelAPIResponse = {
331331

332332
export type ChannelUpdateOptions = {
333333
hide_history?: boolean;
334+
hide_history_before?: string | Date;
334335
skip_push?: boolean;
335336
};
336337

0 commit comments

Comments
 (0)