Fix multiclick error on post creation/editing

merge-requests/67/merge
Hank Grabowski 2023-11-16 10:15:13 -05:00
rodzic fe502f8056
commit 1157e2cb56
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -141,6 +141,10 @@ class _EditorScreenState extends State<EditorScreen> {
Future<void> createStatus(
BuildContext context, TimelineManager manager) async {
if (isSubmitting) {
return;
}
if (isEmptyPost) {
buildSnackbar(context, "Can't submit an empty $statusType");
return;
@ -178,6 +182,10 @@ class _EditorScreenState extends State<EditorScreen> {
}
Future<void> editStatus(BuildContext context, TimelineManager manager) async {
if (isSubmitting) {
return;
}
if (isEmptyPost) {
buildSnackbar(context, "Can't submit an empty $statusType");
return;