hide method

Future<EmptyResponse> hide({
  1. bool clearHistory = false,
})

Hides the channel from StreamChatClient.queryChannels for the user until a message is added.

If clearHistory is set to true - all messages will be removed for the user.

Implementation

Future<EmptyResponse> hide({bool clearHistory = false}) async {
  _checkInitialized();
  return _client.hideChannel(
    id!,
    type,
    clearHistory: clearHistory,
  );
}