1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Close report dialog if user has already sent a report

This commit is contained in:
Pierre HUBERT 2022-03-18 19:23:35 +01:00
parent 79ed8e934e
commit 504be2e5ef

View File

@ -126,6 +126,7 @@ class _ReportDialogState extends SafeState<_ReportDialog> {
} else if (result == ReportResult.ErrorAlreadyReported) { } else if (result == ReportResult.ErrorAlreadyReported) {
await alert( await alert(
context, tr("You have already sent a report for this resource!")); context, tr("You have already sent a report for this resource!"));
MainController.of(context)!.popPage();
} else { } else {
await alert(context, tr("Failed to send report!")); await alert(context, tr("Failed to send report!"));
} }