fix delete image
This commit is contained in:
@@ -109,10 +109,7 @@ class ImageActionsModal extends StatelessWidget {
|
|||||||
final remainingAttachments = [...message.attachments]
|
final remainingAttachments = [...message.attachments]
|
||||||
..removeAt(currentIndex);
|
..removeAt(currentIndex);
|
||||||
channel.updateMessage(message.copyWith(
|
channel.updateMessage(message.copyWith(
|
||||||
attachments: remainingAttachments.map((e) {
|
attachments: remainingAttachments,
|
||||||
return e.copyWith(
|
|
||||||
uploadState: UploadState.success());
|
|
||||||
}).toList(),
|
|
||||||
));
|
));
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
Navigator.pop(context);
|
Navigator.pop(context);
|
||||||
|
|||||||
Reference in New Issue
Block a user