-
matrix-rat 1.4.0
StableAll checks were successfulChecks / fmt, deny, browser build, tools (push) Successful in 7m55sRelease / Version, notes and the draft (push) Successful in 7sRelease / Linux binaries (push) Successful in 28m11sRelease / Browser app (push) Successful in 3m42sRelease / Check the draft and publish it (push) Successful in 6sreleased this
2026-12-03 06:06:18 +01:00 | 31 commits to main since this releasematrix-rat 1.4.0
The browser app gets its own home at https://tergelius.de/matrix-rat/app/, served with
real security headers, and plays voice and audio messages. A video sent from the browser
carries a poster frame, and the browser's bottom bar shows what is going on. The project
now lives on its own Forgejo (https://git.tergelius.de/tylerstyle/matrix-rat), where its
checks and releases are built; GitHub is a mirror.Before you upgrade
- The browser app has a new address: https://tergelius.de/matrix-rat/app/. A browser
keeps a site's data per address, so log in there once (with your recovery key, as on any
new device) and, on a phone, add the new page to the home screen. The old address
(tylerstyle.github.io/matrix-rat/) now shows a notice pointing to the new one: its
service worker retires itself, so an installed 1.3 app shows the notice at its next
start. Your old login stays on that device until you remove it: sign the old browser
session out from the new app (Settings, Sessions), then press the notice's button
"Remove matrix-rat's data from this address". - The terminal app: nothing changes in your profile. 1.4.0 reads and writes the profile
as 1.3.0 did; going back to 1.3.0 with the same profile works. - Releases are on Forgejo: https://git.tergelius.de/tylerstyle/matrix-rat/releases
(every release from 0.7.0 on, with its archives). GitHub mirrors the branches and tags
but gets no releases any more. Clone from either. - For packagers: no new crate;
matrix-sdk,matrix-sdk-uiandmatrix-sdk-base
stay pinned at=0.20.0. The browser app is also in the NUR, asmatrix-rat-web: the
release's archive pinned by hash, checked against itsSHA256SUMS, as static files for
a web server (it is what the site serves).
New
- Voice and audio messages play in the browser. A tap on a voice or audio message's
▶, orxon it, plays it in the page with the waveform and clock the terminal app
shows;Spacepauses,←→go 5 seconds back or on,x(or another sound, another
room, logging out, deleting the message) stops it. It plays in the page's own<audio>
element from aBlobof the decrypted bytes (no decoding of our own), which is readied
inside the tap or key that starts it, so iPhones and Safari let it play once the bytes
are there. It goes on while the screen is locked; the lock screen (Media Session) gets
play, pause, seek and stop, and names only "Voice message" or "Audio" by "matrix-rat",
never the sender, the room or the file. While it plays, the bottom bar shows it
("▶ voice 0:03 / 0:12", with "‖" when paused; "▶ 0:03" on a phone), also when the
message is scrolled out of sight; a tap there pauses it or goes on (and stops one that is
still loading). What the browser says it cannot play is not
downloaded: a message names the kind ("This browser can't play Ogg/Opus; use Download
original", as on Safari before iOS 18.4). Element's voice messages (Ogg/Opus) play on
iOS 18.4 and later, also in silent mode. Recording in the browser comes later. - A video sent from the browser carries a poster. Before it goes out, the page reads the
video's size and length and draws one frame of it (at most 800×600, as a JPEG) in a
hidden<video>and<canvas>, so other apps show a preview of the right shape before
anyone plays it. Where the browser has no frame ready (always on an iPhone, now and then
in Chrome on Android), the hidden video plays without sound until one comes; a frame that
is black to the eye (a covered lens, a frame not painted yet) is never sent. It gets
3 seconds: a video the browser cannot read goes out as before, and one without a frame in
time (or whose playback the browser refuses, as iOS does in Low Power Mode) keeps its
size and length. The video is read from the file the user picked (ablob:address that
is let go at once). Tried with 4K.movfrom an iPhone and camera clips from Android. - The browser's bottom bars. On a monitor, the left of the bottom bar shows what is
going on (mentions in other rooms, a sound playing, uploads, reminders that are due, do
not disturb, and the connection only when it is not synced), the right one fixed set of
hints (Ctrl-P commands,F1,F2,F3). A click on the mentions, an upload or a due
reminder opens its room or the reminder; one on the sound pauses it or goes on. On a
phone the bottom row shows only what matters right now, in short forms, centred clear of
rounded screen corners; it keeps its row when empty, so nothing jumps. The connection
state moves into Settings (Connection). The rooms bar above the chat reads‹ Roomsin
the browser. The terminal's status line stays as it is. - The command palette and help open over the picture viewer (
Ctrl-Por☰,F1) and
close back to it; a palette action that leaves the picture closes the viewer.
Changed
- The site's headers. At its new address the app is served with its Content Security
Policy as an HTTP header (soframe-ancestors 'none'applies, which a<meta>policy
cannot do),Referrer-Policy: no-referrer,X-Content-Type-Options: nosniffand
noindex; hashed files are cached for a year, the page, its worker and its manifest are
always revalidated. The page's policy gainsmedia-src blob:for playback. No other page
of the site runs any script, as the app shares its origin with them. - Builds. Checks run on every push to main and every week (formatting,
cargo deny,
the browser build's clippy, the tool tests), and each release is built from its tag on
Forgejo's runners: the x86-64 and ARM64 archives as before, and the browser app as
matrix-rat-web-<version>.tar.gzwith itsSHA256SUMS. Build steps run as an
unprivileged user without the job's token; a draft release is checked for its exact
assets, published, then downloaded anonymously and compared.
Fixed
- A mention that came with a room the app had not seen yet (a room made a moment before,
or one waiting at login) was not counted on a homeserver that does not send your own
membership along with a room, as Continuwuity 26.11 does not: no badge, and@1where
it should say@2. matrix-rat fetches that membership for such rooms; what came before
it is now counted once it is there, in the browser and in the terminal. - Jumping to a message of someone you ignore said "Message could not be found." on Tuwunel
(it answers withM_SENDER_IGNOREDin a 404) and on Continuwuity 26.11 (a plain 404 with
"You have ignored the sender of this event."); it says "That message is from an ignored
user." again. - Room info on phones:
◂and▸of Notifications stay on screen down to 27 columns, and
they are easier to hit (they reach across the gap and to the border). - A picture or video still being sent no longer makes the app ask the homeserver for a
small version of it: the send queue's own copy is shown, as the SDK does.
Good to know (the browser)
- What only the terminal app does: search across all rooms (
Ctrl-G), recording voice
messages, playing videos, 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, andserveandmcp. - Size: the first visit loads about 7.07 MiB compressed (6.76 MiB for the
17.48 MiB WebAssembly module; 17.98 MiB uncompressed across 16 published files); later
visits start from the browser's cache. - Testing: 2,235 unit tests (
matrix-rat,matrix-rat-engine,matrix-rat-web, plus
3 unit and 6 doc-tests in vendoredratzilla), 84 tests against a real homeserver (the
whole server suite passing in one run on Continuwuity 26.11 and in one on Tuwunel 2.0),
36 browser-tool tests and 23 tests of the release workflow, and 290 headless Chromium
checks (0 CSP violations, 0 console errors), plus live phone testing on iPhone and
OnePlus 8 Pro.
Dependencies
pin-project-lite0.2.19 (every earlier version was yanked for a soundness fix in its
parsing). Nothing else changed since 1.3.0, released the same week.
Downloads
-
Source code (ZIP)
0 downloads
-
Source code (TAR.GZ)
0 downloads
- The browser app has a new address: https://tergelius.de/matrix-rat/app/. A browser