Several nodes only logged a warning, or called node.error() without the
msg, so Catch nodes and the error output never saw the failure. Also
removes unused code from Room Users.
The HMAC was UTF-8 encoded twice, so passwords with non-ASCII characters
failed. Also validates input, handles a trailing slash in the URL, sets
the display name, and stores the shared secret as a password.
m.space.parent and m.space.child were sent as m.room.power_levels. Also
fixes the Room setting, JSONata values, state keys on getters, and
getters returning the whole event instead of its content.
unpaginate threw when the first page was shorter than the page size.
Each pagination key also left a listener on the room forever. At most
50 windows are now kept, and dropped ones are detached from the room.
Media is detected by shape, so stickers and plain media in encrypted
rooms get their URLs. Reactions without m.relates_to no longer throw,
and audio gets a filename and mimetype fallback.
Send Image sent an empty info object, so clients showed images as plain
files. It now sends the mimetype, size and dimensions, and outputs the
authenticated media URL.
The msgtype now comes from the content type, so a buffer named without
an extension but with an image content type is sent as m.image instead
of m.file. Also:
- encrypted uploads no longer reveal the filename and type to the server
- image thumbnails are PNG and never upscaled
- video thumbnails use a private temp dir (fixes a crash when one msg
goes to two upload nodes)
- relative paths, WebM/MKV durations and msg.generateThumbnails work
- errors go to the error output and Catch nodes
If the node was closed while it was still connecting, startup carried on
and left a hidden client syncing forever (with E2EE, two crypto stacks on
one device). Every startup step now checks whether the node was closed,
and close waits for a starting client before stopping it. This also
handles the unhandled AbortError matrix-js-sdk throws when stopped
during its first sync.
The SDK was silenced at "info" and flooded the console at quieter
levels. SDK debug output now only shows at debug or trace, and its
warnings and errors follow the Node-RED level. Only the SDK's own
loggers are touched.
Discovery forces https, so on LAN IPs, localhost and plain http it waited
for its 5 second timeout on every start. The configured URL is now
checked in parallel, and a .well-known delegation still wins.
Invites have no timestamp, so the "older than startup" check skipped
every one of them. Invites that were pending at startup are now handled
too, and the Room Invite node gets the room name instead of null.
All Receive nodes shared one msg object, so changes made in one flow
showed up in the others. msg.user is now a plain copy too, since
stripping fields off the live SDK user also removed its listeners.
Errors while handling an event are now reported instead of being left
as an unhandled rejection.
Nodes never removed their listeners from the server config, so each
"Modified Nodes" deploy left the old node listening too. Nodes now
register through server.listen() and are cleaned up on deregister. The
connected event is replayed to nodes created after connecting so they
don't stay stuck on "disconnected".
Adds a "Clear encryption data" button (type "delete" to confirm) for
recovering from a corrupted crypto store. Afterwards the node stays
disconnected until the bot logs in as a new session, since the
homeserver rejects new keys for the old device.
matrix-js-sdk's LocalStorageCryptoStore.getEndToEndSessionsBatch()
returns olm sessions without the deviceKey/sessionId fields, since
those live only in the storage key path. initRustCrypto()'s migration
then assigns the undefined deviceKey to PickledSession.senderKey and
crashes in the WASM setter with "Cannot read properties of undefined
(reading 'length')". The IndexedDB backend embeds those fields in the
record and is unaffected, which is why this only hit installs that
were started on the legacy localStorage crypto store.
Patch the instance to re-derive deviceKey/sessionId from the
crypto.sessions/<deviceKey> keys before returning a batch, so both
the migration and its delete-after-migrate step work.
Tagline now mentions E2EE; the beta banner is replaced with a permanent
issues/release-notes pointer. Features list gains Session management and
Send Location, expands Receive events to all 10 handled msgtypes, and
notes Markdown alongside HTML in Send & modify messages.
New matrix-send-location node publishes m.location events using
matrix-js-sdk's makeLocationContent helper, so the wire format matches
Element's "Share my location". Per-message inputs are typed inputs
(msg / flow / global / num / str), defaulting to the obvious msg.*
names.
matrix-receive's m.location handler now also sets msg.latitude,
msg.longitude, msg.altitude, msg.description, msg.assetType, and
msg.timestamp on the output (additive - msg.geo_uri / msg.payload are
unchanged), so a Receive node wired straight into Send Location resends
a byte-equivalent event.
Help docs in both nodes updated.
Adds two interactive admin tools to the matrix-server-config node so
device verification and session management can be done from the editor
without building a flow. Both open as modal dialogs and are backed by
new flows.write-protected admin endpoints.
Pending verifications
- New "Pending verification requests" button opens a modal listing
incoming and in-progress verification requests, refreshed every 5
seconds.
- Each entry shows the type (device or room), who it is from, a live
age, and a live expiry countdown; the list is capped at the newest 20
with a hidden-count note.
- Clicking an entry drives the SAS flow (accept, start, show emoji,
confirm/cancel) within the modal.
- New /matrix-chat/verification endpoint with list, advance, confirm,
mismatch, and cancel actions.
- trackVerificationRequest now records a seen-at timestamp and keeps
finished requests for two minutes so their outcome can still be
reported to the editor.
Sessions
- New "Manage sessions" button opens a modal listing the account's
sessions, modelled on Element's session manager: the current session
with a verified / not-verified status box, then other sessions, each
with a green or red shield, last activity, and IP address.
- Clicking a session shows its details (session ID, last activity, IP),
a Rename action, and a password-confirmed Remove. Unverified sessions
offer a Verify action that hands off into the verification modal.
- New /matrix-chat/sessions endpoint with list, rename, remove, and
verify actions.
Upgrades matrix-js-sdk from 34.13.0 to 41.5.0. This crosses the v37
removal of the legacy libolm crypto stack, so E2EE is migrated to the
Rust crypto implementation. Also adds device verification, cross-signing
setup, and authenticated media support.
Dependencies
- Bump matrix-js-sdk ^34.13.0 -> ^41.5.0; require Node.js >= 22.
- Drop the `olm` dependency (legacy crypto only); add `fake-indexeddb`.
Rust crypto
- Replace initCrypto() with initRustCrypto(); the legacy crypto stack
was removed upstream in v37.
- Add src/matrix-crypto-store.js: the Rust crypto store requires
IndexedDB, absent in Node.js, so it is backed by fake-indexeddb and
snapshotted to disk (rust-crypto-store.v8) to survive restarts.
- Migrate existing libolm crypto state into the Rust store on first run,
and discard the stored crypto state when the device ID changes.
Homeserver discovery
- Resolve the homeserver via .well-known, so a delegating domain
(e.g. example.org) works as the configured server URL.
Cross-signing & secure backup
- Add a secured /matrix-chat/secure-backup admin endpoint and a modal
dialog on the server config node: check status, unlock an existing
secure backup with its recovery key, or reset and create a new one.
Device verification (new nodes)
- matrix-verification: event source emitting verification requests and
phase changes, with on-node filters (phase, initiated by, type,
self-verification, user allowlist, room).
- matrix-verification-action: request, accept, start SAS, confirm,
mismatch, or cancel an in-flight verification.
Authenticated media
- matrix-receive and matrix-crypt-file use the authenticated media
endpoints, send a bearer token via msg.headers, and fall back between
the v3 and v1 media endpoints on a 404.
Fixes
- Surface connection/auth errors in the log; node.error() calls were
passed an empty msg object, which routed the error and suppressed
console logging.
- matrix-get-user: await getProfileInfo()/getPresence().
- matrix-invite-room: pass the reason as the third invite() argument
(the removed callback parameter was shifting it out).
- Guard the verification handlers so a throwing SDK getter cannot crash
Node-RED.
Docs
- Add the device-verification example flow; update the READMEs and node
help, correcting stale claims that device verification, secure backup,
and encrypted file uploads were unsupported.
- Added examples for every node
- Fixed User Settings node requiring a roomId when it's not needed
- Fixed the documentation for Upload File node
- Get User node had unused config code that has been removed
- Add new node `Get Event` that will give you room data for a corresponding roomId and eventId #117
- Add new node `Fetch Event Relations` that can paginate through events related to another event #119
- README updates
- matrix-send-message node can now be used to reply in a thread (closes#104)
- matrix-receive node now returns msg.mentions for easier access to who was mentioned in message
- matrix-receive node now returns boolean msg.isThread based on whether the message is a thread reply or not