🐛 Bug fixes on upload attachment

This commit is contained in:
LittleSheep 2024-08-10 01:17:31 +08:00
parent 3d45b54236
commit dfe9165bc9

View File

@ -138,9 +138,7 @@ class AttachmentUploaderController extends GetxController {
queueOfUpload[idx].isCompleted = true;
}
queueOfUpload.value = queueOfUpload
.where((x) => x.error == null && x.isCompleted)
.toList(growable: true);
queueOfUpload.removeWhere((x) => x.error == null);
_stopProgressSyncTimer();
_syncProgress();