report method

Future<void> report(
  1. {required ReportCategory category,
  2. String? description}
)

Reports this channel of inappropriate activities.

Implementation

Future<void> report({
  required ReportCategory category,
  String? description,
}) async {
  sbLog.i(StackTrace.current, 'category: $category');
  checkUnsupportedAction();

  await chat.apiClient.send(ChannelReportRequest(
    chat,
    channelType: channelType,
    channelUrl: channelUrl,
    category: category,
    description: description,
  ));
}