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.