fix delete image

This commit is contained in:
Salvatore Giordano
2021-02-26 13:34:28 +01:00
parent 9f5cc16dca
commit 114182d50f
@@ -109,10 +109,7 @@ class ImageActionsModal extends StatelessWidget {
final remainingAttachments = [...message.attachments]
..removeAt(currentIndex);
channel.updateMessage(message.copyWith(
attachments: remainingAttachments.map((e) {
return e.copyWith(
uploadState: UploadState.success());
}).toList(),
attachments: remainingAttachments,
));
Navigator.pop(context);
Navigator.pop(context);