Chat iOS v4
This is the new Docs for Chat SDK v4 for iOS. To see the previous Docs, click here.
Hide or archive a group channel
You can hide or archive a specific group channel from the channel list UI by following the code below.
Determines whether to show the messages sent and received before hiding or archiving the channel on the channel list. If set to
true, previous messages aren't displayed in the channel. (Default:
Determines the state and operating behavior of a channel. If set to
true, the channel is hidden from the channel list, but when a new message arrives, the hidden channel will show up again on the channel list. If set to
false, the channel is archived and stays hidden from the channel list unless the
.unhide method is called.
You can check the channel state on the channel list by using the
hiddenState property of a
You can also filter channels by their state by following the code below.