Repository navigation
fix(remote): name the download limit when it is what blocks a file - #1362
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
The branch also carries the merge commit of its task branch; it adds no content of its own.
Verification
Local, at
e7bd5bf06with rustc/clippy 1.97.0 (CI's pinned toolchain) and Node 22:cargo fmt --all -- --check→ cleancargo clippy -p future-host --all-targets -- -D warnings→ cleancargo test -p future-host --lib -- remote_host::files→ 40 passednpx tsc --noEmit→ cleannpx eslinton the two touched mobile paths → cleannpx jest src/features/chat/__tests__/useFileDownload.test.ts→ 98 passedNotes
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.