showReportDialog function

Future<void> showReportDialog(
  1. dynamic context,
  2. dynamic pin
)

Implementation

Future<void> showReportDialog(BuildContext context, ActerPin pin) async {
  final lang = L10n.of(context);
  await openReportContentDialog(
    context,
    title: lang.reportThisPin,
    description: lang.reportThisContent,
    eventId: pin.eventIdStr(),
    roomId: pin.roomIdStr(),
    senderId: pin.sender().toString(),
    isSpace: true,
  );
}