File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
lib/app/layouts/conversation_attachments/widgets Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -516,11 +516,9 @@ class _AttachmentPopupState extends OptimizedState<AttachmentPopup> with SingleT
516
516
popDetails ();
517
517
getActiveMwc (message.guid! )? .updateWidgets <EmbeddedMedia >(null );
518
518
} else {
519
- // for (Attachment? element in part.attachments) {
520
- // // We might actually need the cvController for this if we're going to manipulate imageData
521
- // // widget.cvController.imageData.remove(element!.guid!);
522
- // // as.redownloadAttachment(element);
523
- // }
519
+ MessageWidgetController ? mwc = getActiveMwc (message.guid! );
520
+ mwc! .cvController? .imageData.remove (attachment! .guid! );
521
+ as .redownloadAttachment (attachment! );
524
522
popDetails ();
525
523
getActiveMwc (message.guid! )? .updateWidgets <AttachmentHolder >(null );
526
524
}
You can’t perform that action at this time.
0 commit comments