227 Commits
Author SHA1 Message Date
skylord123 70c4bd3201 Merge pull request #146 from Skylar-Tech/dev
Next release v1.1.0
v1.1.0
2026-10-16 11:23:00 -06:00
skylord123 ee8647f55a Bump version to 1.1.0 2026-10-16 11:01:37 -06:00
skylord123 a839e0d1e7 Fix closing during startup wiping the saved encryption store
Closing an E2EE node before its crypto store was restored wrote an
empty snapshot over the saved one, losing the device keys.
2026-10-16 10:35:23 -06:00
skylord123 5c5e81ca60 Fix clearing encryption data while the client is starting
The startup went on to connect, and the crypto database could not be
deleted because the starting crypto stack still had it open.
2026-10-16 10:35:23 -06:00
skylord123 b29712af68 Give each Room Invite node its own copy of msg
Same problem as #144: all Room Invite nodes shared one msg object.
2026-10-16 10:35:23 -06:00
skylord123 53cb02db4a Send node errors to Catch nodes and the error output
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.
2026-10-16 10:35:23 -06:00
skylord123 4bbaf744fb Fix Room Invite output label 2026-10-16 10:35:23 -06:00
skylord123 587464d252 Fix Kick and Ban docs saying msg.eventId is returned 2026-10-16 10:35:23 -06:00
skylord123 369023aea0 Report Synapse Join Room errors to Catch nodes
Also registers the node with the server config like the other nodes.
2026-10-16 10:35:23 -06:00
skylord123 a9408909a1 Fix erase option in Synapse Deactivate User
Synapse rejects anything but a JSON boolean.
2026-10-16 10:35:23 -06:00
skylord123 3582128e75 Fix guests=false being ignored in Synapse Users 2026-10-16 10:35:23 -06:00
skylord123 301baf8436 Fix crash when Join Room output is wired to more than one node
msg.payload held the SDK Room object, and cloning it failed with
"Maximum call stack size exceeded". It is now plain room data.
2026-10-16 10:35:23 -06:00
skylord123 c8e61cd956 Fix Leave Room reporting success when leaving fails
leave() was not awaited, so failures went unhandled.
2026-10-16 10:35:23 -06:00
skylord123 e2857b1fd0 Fix Synapse Register crashing on close and with non-ASCII passwords
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.
2026-10-16 10:35:23 -06:00
skylord123 e1bd56d99f Fix Get User returning the live SDK user and no status message
It now outputs a plain copy, reads status_msg correctly, and does not
fail when the server refuses presence.
2026-10-16 10:35:23 -06:00
skylord123 da2a7b047b Fix JSONata and empty rules in User Settings
JSONata values were never set, and a node with no rules swallowed the
msg.
2026-10-16 10:35:23 -06:00
skylord123 c5e0aaa1f0 Fix Room State Events writing space links as power levels
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.
2026-10-16 10:35:23 -06:00
skylord123 a61cdb7ffe Fix Paginate Room crashing on a short first page and leaking windows
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.
2026-10-16 10:35:23 -06:00
skylord123 19d4ae1ebc Fix Whois User failing when msg.payload is set
msg.payload was sent as the body of a GET request.
2026-10-16 10:35:23 -06:00
skylord123 a4099d92bd Fix Receive media URLs in encrypted rooms and empty reactions
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.
2026-10-16 10:35:23 -06:00
skylord123 e44149824f Fix Mark Read failing for events outside the loaded timeline
It now fetches the event from the server, and the event ID input
accepts a string instead of a boolean.
2026-10-16 10:35:23 -06:00
skylord123 374b2e54de Fix Typing node starting to type when given "false" 2026-10-16 10:35:23 -06:00
skylord123 640c7b384b Fix Send Location using setting names as values
An empty text field was replaced by the default property name, so for
example the text "geo_uri" was sent as the geo URI.
2026-10-16 10:35:23 -06:00
skylord123 e8f944aacd Fix Send Message corrupting & in markdown and crashing on errors
Escaped markdown put HTML-escaped text into body, so & showed up as
&. Errors now always reach the error output with the msg.
2026-10-16 10:35:23 -06:00
skylord123 db05d29de0 Send the filename and type with Send File (#88)
Files were sent with an empty filename and no mimetype.
2026-10-16 10:35:23 -06:00
skylord123 ada5d64ebd Fill in image info when sending images (#80)
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.
2026-10-16 10:35:23 -06:00
skylord123 3714a4a566 Fix Upload File type detection, thumbnails and errors (#80)
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
2026-10-16 10:35:23 -06:00
skylord123 5dedd8bbde Fix checkbox defaults showing as undefined in the editor
"type" in a node's defaults means a config node reference, which caused
"Unknown type: checkbox" errors.
2026-10-16 10:35:23 -06:00
skylord123 6de7afeb32 Stop retrying forever when the access token is invalid
The check read err.code, but the SDK sets err.errcode, so a bad token
was retried every 15 seconds without a clear error.
2026-10-16 10:35:23 -06:00
skylord123 0af68e91b0 Fix client still running after a deploy during startup
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.
2026-10-16 10:35:23 -06:00
skylord123 144b9cd712 Fix device ID check using a setting that does not exist
It read node.enableE2ee instead of node.e2ee.
2026-10-16 10:35:23 -06:00
skylord123 a137a19683 Fix matrix-js-sdk logging check being inverted
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.
2026-10-16 10:35:23 -06:00
skylord123 9321d54c30 Don't wait for .well-known when the server URL is already a homeserver
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.
2026-10-16 10:35:23 -06:00
skylord123 73e34afa62 Fix auto-join ignoring room invites (#141)
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.
2026-10-16 10:35:23 -06:00
skylord123 31751b794c Report errors in timeline and invite handlers instead of crashing
A throw in these async SDK handlers became an unhandled rejection,
which stops Node-RED.
2026-10-16 10:35:23 -06:00
skylord123 4c5baf112b Give each Receive node its own copy of msg (#144)
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.
2026-10-16 10:35:23 -06:00
skylord123 9eb91b4e77 Fix duplicate messages after deploying modified nodes
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".
2026-10-16 10:35:22 -06:00
skylord123 fdd90340b9 Add a way to clear encryption data from the server config
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.
2026-10-16 10:35:22 -06:00
skylord123 828f3eac6a Remove unused encryptAttachment from Decrypt File 2026-10-16 09:02:16 -06:00
skylord123 33c899199f Fix thumbnails on received and decrypted media
Unencrypted thumbnails were dropped, and Decrypt File only decrypted
thumbnails for images.
2026-10-16 09:02:15 -06:00
skylord123 0e106dd945 Fix encrypted uploads that recipients could not decrypt
encodeBase64 passed the Uint8Array to btoa(), which encoded its "1,2,3"
string form instead of the bytes, so the iv and sha256 were wrong.
2026-10-16 09:02:15 -06:00
skylord123 26abcd8e4f Update fake-indexeddb to 6.2.6 to fix memory leak (#145)
6.2.5 never dropped finished transactions, so memory grew until Node-RED
ran out of heap (dumbmatter/fakeIndexedDB#170).
2026-10-16 09:02:15 -06:00
skylord123 f35cef1723 Remove empty matrix-file-crypt.js 2026-10-16 08:25:39 -06:00
skylord123 875e42d320 Merge pull request #142 from Skylar-Tech/dev
Release v1.0.0
v1.0.0
2026-05-26 13:59:28 -06:00
skylord123 f62ec9834b Bump got, image-size, mime, node-localstorage, sharp to latest
got@15 default export, mime@4 ESM-only dynamic import, image-size@2
split into imageSize/imageSizeFromFile.
2026-05-26 13:53:59 -06:00
skylord123 bc97c564d3 Fix libolm->rust crypto migration crash on localStorage stores
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.
v1.0.0-beta.3
2026-05-24 14:17:30 -06:00
skylord123 5012c603aa Add Send Location example flow v1.0.0-beta.2 2026-05-23 15:46:09 -06:00
skylord123 af1067a99b Refresh README features and tagline for v1.0.0
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.
2026-05-23 13:51:49 -06:00
skylord123 390a5b264e Add Send Location node; expand Receive's m.location output
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.
2026-05-23 12:36:48 -06:00
skylord123 9dc4362819 Add native Markdown format option to the Send Message node 2026-05-22 22:36:11 -06:00