Skip to content

fix(remote): name the download limit when it is what blocks a file - #1362

Merged
huichen merged 2 commits into
mainfrom
pr/huichen
Oct 26, 2026
Merged

huichen merged 2 commits into
mainfrom
pr/huichen

Conversation

@huichen

@huichen huichen commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

What and why

A mobile download of an oversized file was refused with "This file type is not available on mobile; view it on desktop", which names neither the real limit (size) nor an action the reader can take. The size is now decided before the type, and the refusal names the 10 MB mobile download limit. The phone matches the new wording so an oversized file reads as "too large" rather than as a broken transfer.

Commits

  • fix(remote): name the download limit when it is what blocks a file

The branch also carries the merge commit of its task branch; it adds no content of its own.

Verification

Local, at e7bd5bf06 with rustc/clippy 1.97.0 (CI's pinned toolchain) and Node 22:

  • cargo fmt --all -- --check → clean
  • cargo clippy -p future-host --all-targets -- -D warnings → clean
  • cargo test -p future-host --lib -- remote_host::files → 40 passed
  • mobile npx tsc --noEmit → clean
  • mobile npx eslint on the two touched mobile paths → clean
  • mobile npx jest src/features/chat/__tests__/useFileDownload.test.ts → 98 passed

Notes

Behaviour change: a download refused for size now reports the size limit instead of the file type. The mobile client renders the new message; an older phone build would show the previous generic text.

A 12.5 MB app-debug.apk was refused with "This file type is not available
on mobile; view it on desktop." — two things wrong at once: the type was
not the binding limit, and the panel saying it is already the desktop.
Size is now decided before type, and the refusal names the 10 MB limit,
which is the fact the reader can act on. The phone matches the new text
so an oversized file reads as "too large" instead of a broken transfer.
@huichen
huichen enabled auto-merge (squash) October 26, 2026 02:18
@huichen
huichen merged commit b594ac2 into main Oct 26, 2026
21 checks passed
@huichen
huichen deleted the pr/huichen branch October 26, 2026 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant