Hide or archive a group channel
You can use the following code to hide or archive a specific group channel from the channel list UI.
GroupChannelHideParams
Argument | Type | Description |
---|---|---|
hidePreviousMessages | boolean | Determines whether to show the messages sent and received before hiding or archiving the channel on the channel list. If set to |
allowAutoUnhide | boolean | Determines the state and operating behavior of a channel. If set to |
By using the channel.hiddenState
property, you can check the channel state on the channel list.
You can also filter channels by their state like the following.