reportUser method

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

Reports a user of suspicious activities.

Implementation

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

  await chat.apiClient.send(UserReportRequest(
    chat,
    targetId: userId,
    channelType: channelType,
    channelUrl: channelUrl,
    category: category,
    description: description,
  ));
}