reportUser method
- {required String userId,
- required ReportCategory category,
- 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,
));
}