make all ExpandableImages downloadable

There might have been a reason why I didn't do this but I don't remember it...
This commit is contained in:
Henry Hiles 2026-12-01 01:59:08 -05:00
commit dccbda7870
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 10 additions and 13 deletions

View file

@ -7,7 +7,7 @@ final class const ExpandableImage(
final DownloadMediaRequest? request, {
required final Widget child,
/// If set, a download button is shown, suggesting this filename
/// Suggested filename when downloading, falling back to the media ID
final String? downloadFilename,
final int? size,
super.key,

View file

@ -98,7 +98,6 @@ class const Html(
alignment: .middle,
child: ExpandableImage(
.new(mxc: src),
downloadFilename: src.pathSegments.last,
child: Image(
image: MxcImage(ref, .new(mxc: src)),
errorBuilder: (_, error, _) => Text(

View file

@ -68,7 +68,6 @@ class const ReactionsPopover(
void expand() => context.showImageViewer(
ref,
.new(mxc: Uri.parse(reaction)),
downloadFilename: reaction.split("/").last,
);
final isImage = reaction.startsWith("mxc://");