-
matrix-rat 1.3.0 Stable
released this
2026-12-02 11:27:20 +01:00 | 108 commits to main since this releasematrix-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 patchedratzilla.Both apps also gain active room call indicators and ringing with
Vto 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 asphone_enterandtext_size, are ignored or noted once on older versions). - Two new default shortcuts (
Alt-PandV).Alt-P(last_room, Previous room)
works everywhere andV(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 bindlast_room/open_callunder[keys]or invoke
them via the Command Palette (Ctrl-P). - For packagers:
Cargo.lockhas no git sources anymore.ratzilla(commit2f6f7ef) is now vendored underweb/vendor/ratzilla/with
PATCHES.mdand bothLICENSE-MITandLICENSE-APACHE.default.nixdrops
outputHashesand adds./web/vendorto its sourcefileset. Its optionalwebgl2
(beamterm-renderer) andcanvasfeatures are disabled by default so they are not
compiled intomatrix-rat-web(their optional/dev entries remain inCargo.lock).matrix-rat-engineadds one new crate dependency:imagesize 0.15.0(MIT, zero
dependencies) for header-only dimension guards before browser decoding, and uses
gif 0.14directly (already inCargo.lockviaimage 0.25) without pixel decoding
to bound GIF first-frame extents.sha2is updated from0.11.2(yanked) to0.11.3.matrix-sdk,matrix-sdk-ui, andmatrix-sdk-baseremain pinned at=0.20.0.
New
- Real pictures in the browser. Inline pictures and the picture viewer draw into
<canvas class="mr-picture">overlays usingdrawImagefrom shell-owned
ImageBitmaps decoded viacreateImageBitmap, 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 viaimagesizeandgiffirst-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,DownloadDirin the terminal). - Calls, step 0 (both apps). Rooms with an active call show
● callin the room
list and a"call in progress · N people"banner with" Open call ". Incoming
m.rtc.notificationevents 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/roommentions — 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. PressingVor choosing" Open call "opens
the room's verifiedhttps://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.6get_event_by_timestamp, falling back to bounded backward
/messagespaging 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 inDebug). - 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_packpacks load
throughmatrix-sdk-ui::image_packs(with lenient raw-JSON fallback when a pack has a
malformed entry or unknownusage, keeping theim.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, browsernavigator.storage.estimate(), and asynchronous media cache metrics
(displaying"measuring…"until measurement finishes). - Enter on phones & Text size. Settings → Enter on phones (
new lineby default,
orsend) configures what the phone keyboard's Return key does without affecting hardware
keyboards; Settings → Text size (10–24px) stays in sync with two-finger
pinch-to-resize in the browser.
Changed
- Top bar dropped while running (browser).
#barstays 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#barreturns only if the app stops. - Phone key bar, Paste text, and text selection. Helper keys are taller to match the
message box height, with☰andPasteswapped (☰ · 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 at23–24px text size) that keeps all four
arrows andPstaccessible. 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–24px) and suppressed overlay spellcheck squiggles. - Phone feel, IME & hybrid devices. Added swipe inertia glide, pinch-to-resize text
(10–24px; 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/clearAppBadgesynced 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-secretwiping onpagehide, and a live
bundled-font glyph coverage check againstDejaVuSansMono.woff2. Hybrid devices (iPads
with keyboards, touch laptops) trackpointerTypemodality; taps lock their cell on
pointerdown; desktop Safari's 50 ms post-compositionendEnter is guarded (leaving
Chromium/Gboard immediate Enter untouched); and a
generation-guarded 1-tick post-compositionendre-read (cancelled by Send/Esc/room
switch) catches late IME edits. - Vendored patched ratzilla & stricter CSP. Cell styling uses CSSOM
style.setPropertydiffing to skip unchanged writes during scrolls,set_text_content
instead ofset_inner_html,Modifier::DIMvia 50% sRGB channel mixing against the
background, andcontain: layout paint styleon 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-canvas1×–5×midpoint-anchored pinch and
aspect-clamped 1-finger panning (#termstaystouch-action: noneand 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–24px), right-edge wrap slack, and
multi-linescrollTopsync so tapping or long-pressing inside a full composer line
lands on the exact character instead of wrapping off the end. - Status-line
Reloadpill over open modals. KeptUpdate 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→andPststay visible and hittable at23–24px on narrow phones. /goto YYYY-MM-DDon Continuwuity. Added bounded backward/messagespaging
fallback when the homeserver omits Matrix 1.6timestamp_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-textwhile the composer draft is a slash command (/excluding
//literal escapes) so mobile keyboards such as Gboard do not rewrite/gotointo
/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), andserveandmcp. - 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
inlinestyleattributes (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 vendoredratzilla), 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.14is now used directly (already inCargo.lockviaimage 0.25)
for header-only GIF first-frame extent checks. - Updated:
sha20.11.2→0.11.3(replaces yanked release; zero yanked crates). - Changed for the browser only (
matrix-rat-web):ratzilla(2f6f7ef) is now vendored
underweb/vendor/ratzilla/withwebgl2/canvasfeatures disabled by default;
Cargo.lockhas no git sources. matrix-sdk,matrix-sdk-ui, andmatrix-sdk-baseremain pinned at=0.20.0.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- Nothing changes in your profile. 1.3.0 reads and writes the profile as 1.2.0 did;