• v1.3.0 81026fc074

    tylerstyle released this 2026-12-02 11:27:20 +01:00 | 108 commits to main since this release

    matrix-rat 1.3.0

    Real pictures in the browser, phone polish and gestures, a full-viewport grid without the
    top bar, and a stricter Content Security Policy backed by a vendored patched ratzilla.

    Both apps also gain active room call indicators and ringing with V to open the call,
    previous room (Alt-P), jump to date (/goto YYYY-MM-DD), who reacted in Message details,
    ancestor spaces and retention policy in Room info, SDK-backed image packs with a global
    toggle, and store sizes in Doctor.

    Before you upgrade

    • Nothing changes in your profile. 1.3.0 reads and writes the profile as 1.2.0 did;
      going back to 1.2.x with the same profile works (browser-only settings added in 1.3.0,
      such as phone_enter and text_size, are ignored or noted once on older versions).
    • Two new default shortcuts (Alt-P and V). Alt-P (last_room, Previous room)
      works everywhere and V (open_call, Open call) works in the timeline: if your 1.2
      config.toml [keys] section already binds either key, your binding wins (with a
      startup warning) and you can bind last_room / open_call under [keys] or invoke
      them via the Command Palette (Ctrl-P).
    • For packagers: Cargo.lock has no git sources anymore.
      • ratzilla (commit 2f6f7ef) is now vendored under web/vendor/ratzilla/ with
        PATCHES.md and both LICENSE-MIT and LICENSE-APACHE. default.nix drops
        outputHashes and adds ./web/vendor to its source fileset. Its optional webgl2
        (beamterm-renderer) and canvas features are disabled by default so they are not
        compiled into matrix-rat-web (their optional/dev entries remain in Cargo.lock).
      • matrix-rat-engine adds one new crate dependency: imagesize 0.15.0 (MIT, zero
        dependencies) for header-only dimension guards before browser decoding, and uses
        gif 0.14 directly (already in Cargo.lock via image 0.25) without pixel decoding
        to bound GIF first-frame extents. sha2 is updated from 0.11.2 (yanked) to 0.11.3.
      • matrix-sdk, matrix-sdk-ui, and matrix-sdk-base remain pinned at =0.20.0.

    New

    • Real pictures in the browser. Inline pictures and the picture viewer draw into
      <canvas class="mr-picture"> overlays using drawImage from shell-owned
      ImageBitmaps decoded via createImageBitmap, keeping large RGBA pixel buffers out of
      wasm linear memory. Backed by a 16 MB inline LRU cache (with inline bitmaps released
      when leaving a room), header dimension guards via imagesize and gif first-frame
      extents (up to 16 384 px per side and 50 MP; ICO refused), HEIC support on Safari,
      transparent stickers with cleared grid cells, a play mark drawn in the canvas for videos
      (omitted safely on tiny thumbnails), occlusion and end-of-frame verification over popups
      and pills, and half-blocks kept as fallback.
    • Download original. The picture viewer now shows a tappable " Download original "
      pill above its bottom border while keeping the viewer open, and the message context menu
      offers a unified "Download original" across pictures, stickers, videos, audio/voice
      messages, and files (decrypting encrypted attachments; Safari download/share sheet on
      iOS, DownloadDir in the terminal).
    • Calls, step 0 (both apps). Rooms with an active call show ● call in the room
      list and a "call in progress · N people" banner with " Open call ". Incoming
      m.rtc.notification events respect room mute settings and MSC4075 freshness
      (sender_ts + lifetime): muted rooms never ring, "notification" call events never
      ring (at most a normal notice according to the room's notification mode), and "ring"
      events ring only for direct chats or explicit user/room mentions — showing a ringing
      banner with " Decline " (syncing declines from your other devices), an in-app toast
      whenever the timeline banner is hidden (one-pane room list, picture viewer, help, or a
      popup), and an OS notice when unfocused. Pressing V or choosing " Open call " opens
      the room's verified https://matrix.to/#/... permalink in the browser (built from the
      room's ID or alias only).
    • Previous room (Alt-P, last_room). Switches back to the most recently visited
      room, skipping left rooms (and reopening a closed chat).
    • Jump to date (/goto YYYY-MM-DD). Jumps to the first event at or after local
      midnight (via Matrix 1.6 get_event_by_timestamp, falling back to bounded backward
      /messages paging on homeservers such as Continuwuity or proxies that omit
      timestamp_to_event, tolerating out-of-order federated timestamps), also reachable as
      "Jump to date" in the command palette (Ctrl-P), with plain notes for future dates,
      empty ranges, or unsupported deep history.
    • Who reacted. Message details (i) lists who reacted per emoji (omitting ignored
      users, capped at 20 senders per emoji, and never logged in Debug).
    • Room info (F4): spaces & retention. Shows joined ancestor spaces ("In spaces")
      and the server's effective message retention policy (MSC1763, "Messages kept for …")
      when advertised.
    • Image packs through the SDK & global toggle. Stable m.room.image_pack packs load
      through matrix-sdk-ui::image_packs (with lenient raw-JSON fallback when a pack has a
      malformed entry or unknown usage, keeping the im.ponies.* fallback and all size,
      length, and sanitisation limits), with a "Use this pack in all rooms" toggle on
      stable packs in Room info, the Sticker Picker, and the Emoji Picker.
    • Doctor store sizes. In-app Doctor (Command Palette Ctrl-P → "What the app found here";
      no default shortcut) shows SQLite/IndexedDB store
      sizes, browser navigator.storage.estimate(), and asynchronous media cache metrics
      (displaying "measuring…" until measurement finishes).
    • Enter on phones & Text size. Settings → Enter on phones (new line by default,
      or send) configures what the phone keyboard's Return key does without affecting hardware
      keyboards; Settings → Text size (10–24 px) stays in sync with two-finger
      pinch-to-resize in the browser.

    Changed

    • Top bar dropped while running (browser). #bar stays hidden during normal use so
      the grid fills 100% of the viewport. The version moved into Help (F1) and Doctor,
      update offers and page notes moved into the status line with a tappable/clickable
      reload, and #bar returns only if the app stops.
    • Phone key bar, Paste text, and text selection. Helper keys are taller to match the
      message box height, with ☰ and Paste swapped (☰ · Esc Tab Ctrl Alt · ← ↑ ↓ → · Paste) to keep the menu away from the matching square ➤ Send block, and an extended
      narrow-width cascade (down to ~27 cols at 23–24 px text size) that keeps all four
      arrows and Pst accessible. Browser password and recovery popups (login/re-auth, UIAA
      verification, session sign-out, recovery key) now offer a "Paste text" button that
      keeps a focused field focused (keyboard stays open). Native
      text selection mirrors into the grid on iOS/Android with exact tap-to-caret placement
      across all text sizes (10–24 px) and suppressed overlay spellcheck squiggles.
    • Phone feel, IME & hybrid devices. Added swipe inertia glide, pinch-to-resize text
      (10–24 px; inside the picture viewer, pinching zooms and pans the picture up to 5×
      inside its canvas without scaling the page, preserved across popups and resetting on
      close or picture switch), Badging
      API (setAppBadge/clearAppBadge synced to the unread count and cleared on logout),
      immediate draft flush on hide/pagehide, a rate-limited sync nudge on
      return/online/pageshow (restarting only when sync has been idle for ≥ 10 s),
      immediate #field-secret wiping on pagehide, and a live
      bundled-font glyph coverage check against DejaVuSansMono.woff2. Hybrid devices (iPads
      with keyboards, touch laptops) track pointerType modality; taps lock their cell on
      pointerdown; desktop Safari's 50 ms post-compositionend Enter is guarded (leaving
      Chromium/Gboard immediate Enter untouched); and a
      generation-guarded 1-tick post-compositionend re-read (cancelled by Send/Esc/room
      switch) catches late IME edits.
    • Vendored patched ratzilla & stricter CSP. Cell styling uses CSSOM
      style.setProperty diffing to skip unchanged writes during scrolls, set_text_content
      instead of set_inner_html, Modifier::DIM via 50% sRGB channel mixing against the
      background, and contain: layout paint style on grid rows. This allows dropping
      style-src-attr 'unsafe-inline' from the Content Security Policy.

    Fixed

    • iOS Safari multi-touch pinch lockout. Fixed a touch-tracking state bug on iOS Safari
      where pinch-zooming could leave touch input unresponsive until reload.
    • Picture viewer pinch no longer zooms the whole page. Replaced browser page
      pinch-zoom inside the viewer with in-canvas 1×–5× midpoint-anchored pinch and
      aspect-clamped 1-finger panning (#term stays touch-action: none and zoom resets on
      close or image switch).
    • Composer tap-to-caret and overlay scaling. Replaced hardcoded 15 px overlay scaling
      with dynamic per-size CSSOM variables (10–24 px), right-edge wrap slack, and
      multi-line scrollTop sync so tapping or long-pressing inside a full composer line
      lands on the exact character instead of wrapping off the end.
    • Status-line Reload pill over open modals. Kept Update available Reload
      un-dimmed and clickable above modal backdrops (Login, Recovery, Help) and added
      retryable service-worker activation recovery.
    • Narrow phone key bar at large text sizes. Extended the shrink cascade below 34 cols
      so → and Pst stay visible and hittable at 23–24 px on narrow phones.
    • /goto YYYY-MM-DD on Continuwuity. Added bounded backward /messages paging
      fallback when the homeserver omits Matrix 1.6 timestamp_to_event.
    • Passive popups opening the soft keyboard. Popups such as Room info and Room settings
      now open with the mobile keyboard closed (and blur stale DOM focus) until a text field
      is tapped directly.
    • Phone autocorrect on /commands. Autocorrect, spellcheck, and autocapitalize now
      turn off on #field-text while the composer draft is a slash command (/ excluding
      // literal escapes) so mobile keyboards such as Gboard do not rewrite /goto into
      /go-to, and turn back on as soon as the draft is cleared, sent, or plain text.

    Good to know (the browser)

    • What only the terminal app does: search across all rooms (Ctrl-G), voice
      recording and playing audio (an audio or voice message offers "Download original"),
      local transcripts, translations and catch-up summaries, writing in $EDITOR, opening a
      picture or file in the system's viewer (O; the browser downloads the original), theme
      files of your own, exporting and importing room keys to a file (unlock history with your
      recovery key or by verifying from another device), and serve and mcp.
    • Safari and the home-screen app keep separate storage: a session opened in one is
      not in the other, and a login by the browser started in one finishes in the same one.
    • The page runs only as itself: it refuses to be shown in a frame of another site,
      and its content security policy allows scripts only from its own address and drops
      inline style attributes (style-src-attr 'unsafe-inline' removed).
    • Size: the first visit loads about 7.07 MiB compressed (6.70 MiB for the
      17.41 MiB WebAssembly module; 17.91 MiB uncompressed across 17 published files); later
      visits start from the browser's cache.
    • Testing: 2,193 unit tests (matrix-rat, matrix-rat-engine, matrix-rat-web, plus
      3 unit and 6 doc-tests in vendored ratzilla), 75 tests against a real Continuwuity
      homeserver (89/89 ignored tests passing), 41 browser-tool tests (including bundled font
      glyph coverage and the 20 MiB wasm size limit), and 277 headless Chromium smoke checks
      (0 CSP violations, 0 console errors), plus live phone testing on iPhone and OnePlus 8 Pro.

    Dependencies

    • New in matrix-rat-engine (both apps): imagesize 0.15.0 (MIT, zero transitive
      dependencies); gif 0.14 is now used directly (already in Cargo.lock via image 0.25)
      for header-only GIF first-frame extent checks.
    • Updated: sha2 0.11.2 → 0.11.3 (replaces yanked release; zero yanked crates).
    • Changed for the browser only (matrix-rat-web): ratzilla (2f6f7ef) is now vendored
      under web/vendor/ratzilla/ with webgl2/canvas features disabled by default;
      Cargo.lock has no git sources.
    • matrix-sdk, matrix-sdk-ui, and matrix-sdk-base remain pinned at =0.20.0.
    Downloads