Skip to content

[Inline parity 6/6] Bound media transfers and preserve fidelity - #6

Closed
salmonumbrella wants to merge 17 commits into
inline-chat:mainfrom
salmonumbrella:feat/inline-parity-media
Closed

salmonumbrella wants to merge 17 commits into
inline-chat:mainfrom
salmonumbrella:feat/inline-parity-media

Conversation

@salmonumbrella

@salmonumbrella salmonumbrella commented Nov 8, 2026 •

Copy link
Copy Markdown

What changed

  • Enforce declared and actual 100 MiB limits on authenticated Matrix media streams without unbounded disk spooling.
  • Verify encrypted attachment hashes before using plaintext; retain retryable failures and explicit terminal errors.
  • Preserve native voice/duration metadata and use file fallbacks for unsupported audio/video or conflicting MIME information.
  • Retain the source attachment presentation on upload echoes without retransferring media.

Why

The framework file helper could spool an entire response before the bridge checked its size. Audio/video metadata and upload echoes also need honest fallbacks rather than unsupported native claims.

Usage

Existing media paths apply the limits automatically. Outgoing audio uses a file fallback; native video needs valid dimension/duration metadata. Unknown Matrix backends without a proven bounded transport fail explicitly. Dedicated sticker/GIF semantics are not advertised.

Stacks on #5 (and its preceding dependencies).

Refs #1.

@salmonumbrella
salmonumbrella force-pushed the feat/inline-parity-media branch from 6742fa2 to d4f6564 Compare November 8, 2026 16:24
@morajabi morajabi closed this Nov 14, 2026
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.

2 participants