100 Commits
Author SHA1 Message Date
skylord123 70c4bd3201 Merge pull request #146 from Skylar-Tech/dev
Next release 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
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.
2026-05-24 14:17:30 -06:00
skylord123 5012c603aa Add Send Location example flow 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
skylord123 1801b49fae Set filename on the matrix-upload-file content payload 2026-05-22 19:24:19 -06:00
skylord123 72cc9cfb3b Fix repository URL casing so npm provenance validates 2026-05-22 16:39:30 -06:00
skylord123 b8652a3a9a Merge remote-tracking branch 'origin/master' into dev 2026-05-22 16:35:18 -06:00
skylord123 0362fe81e8 Merge pull request #143 from Skylar-Tech/add-publish-workflow
Add npm publish workflow
2026-05-22 16:34:57 -06:00
skylord123 9ccbe4526f Add GitHub Actions workflow to publish to npm on release 2026-05-22 16:32:09 -06:00
skylord123 0c48db92a0 Publish the released commit so pre-releases can be cut from any branch 2026-05-22 16:31:15 -06:00
skylord123 3f69614ed0 Publish pre-release versions under their own npm dist-tag 2026-05-22 16:24:46 -06:00
skylord123 e3a23df6d6 Switch publish workflow to npm Trusted Publishing (OIDC) 2026-05-22 16:10:08 -06:00
skylord123 3e34dc5961 Add GitHub Actions workflow to publish to npm on release 2026-05-22 16:04:03 -06:00
skylord123 7af8891d5b Update E2EE notes: two ways to verify devices, recommend saving the recovery key 2026-05-22 15:56:12 -06:00
skylord123 939fe42b40 Set version to 1.0.0 2026-05-22 15:44:01 -06:00
skylord123 67920840e1 Add session manager and verification list to the server config editor
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.
2026-05-22 15:29:43 -06:00
skylord123 ebcb1eab81 Upgrade to matrix-js-sdk 41.5.0; add device verification
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.
2026-05-22 14:40:00 -06:00
skylord123 68e63e5def Upgrade from matrix-js-sdk v34 to v34.13.0 2026-02-19 22:45:31 -07:00
skylord123 99909a77c3 Merge remote-tracking branch 'origin/master' into dev 2026-02-19 22:07:10 -07:00
skylord123 aadd82d820 Set version to 0.9.2 2026-01-17 15:00:35 -07:00
skylord123 4e6fa50a67 Merge pull request #138 from Skylar-Tech/dev
Release v0.9.2
2026-01-17 14:57:45 -07:00
skylord123 58bf2dcb54 Set version to 0.9.2 2026-01-17 14:56:05 -07:00
skylord123 c15893bab5 Merge pull request #135 from fprotopapa/master
Remove unused TimelineWindow in server-config. Closes #134
2026-01-17 14:54:45 -07:00
skylord123 04de0b4eb3 Merge pull request #132 from Skylar-Tech/dev
Release v0.9.1
2025-02-09 22:41:41 -07:00
skylord123 8cb52112c1 Fix module compatibility with Node.js < 22 2025-02-09 22:36:52 -07:00
skylord123 54a9972bbc Merge pull request #121 from Skylar-Tech/dev
Release v0.9.0
2025-02-07 20:56:40 -07:00
skylord123 ad34f018ab Merge pull request #127 from koosc/allow-unknown
Add option for allowing unknown devices in rooms
2025-02-07 20:52:10 -07:00
skylord123 20345787d2 README.md change 2025-02-07 20:50:25 -07:00
skylord123 99c19923c6 Release v0.9.0 2025-02-07 20:27:36 -07:00
skylord123 093d59893e Fix roomId and eventId inputs not saving field type correctly for get-event node 2025-02-07 20:27:19 -07:00
skylord123 913f5dfcb9 - Upgrade to matrix-js-sdk 34.11.1 to fix CVE-2024-50336
- Remove request package (no longer needed)
2025-02-05 11:59:39 -07:00
skylord123 e0947dd3bc Merge pull request #128 from wuast94/master
Add m.notice to the receive node
2025-02-03 20:54:40 -07:00
skylord123 8287f3c08a Merge pull request #130 from LokiMidgard/patch-1
Support default plaintext in msg.format
2025-02-03 20:51:43 -07:00
skylord123 0cb8ecf8aa Updated README with a link to a guide that explains how to register users via web browser 2025-01-04 12:58:08 -07:00
skylord123 487241e097 Merge pull request #120 from Skylar-Tech/new-nodes
New nodes
2024-09-18 22:24:25 -06:00
skylord123 3b161f1ad9 - Convert examples list examples/README.md to use collapsable github sections
- Add another example for sending an uploading file to a room
- Add form tip for Send Message node's thread reply config option
2024-09-18 22:19:49 -06:00
skylord123 45ff930518 - Update examples README to make things much easier to find
- 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
2024-09-18 15:21:13 -06:00
skylord123 9e3b66f4aa - Fix Mark Read node not working properly and update the docs for this node #111 2024-09-18 09:32:19 -06:00
skylord123 02826e2769 - Fix Room Pagination node event data being unaccessible #28
- 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
2024-09-16 23:27:29 -06:00
skylord123 6bbd1d5119 Update README.md
Update readme
2024-09-03 21:31:39 -06:00
skylord123 5de1274def Merge pull request #96 from Skylar-Tech/dev
Release v0.8.0
2024-09-03 21:03:18 -06:00
skylord123 1b54bc03eb Merge pull request #114 from squatica/fix-deprecated-login
stop using deprecated login object
2024-09-03 21:00:27 -06:00
skylord123 65edc94854 Add deprecation notice for Send File and Send Image nodes #102 2024-06-24 19:20:19 -06:00
skylord123 351679ad77 - Add image thumbnail generation support for file upload node (and improved logging) #102
- Fix Received images missing thumbnail kills Node Red #65
- Trim rooms provided in receive node's Room ID config value
2024-06-13 20:21:20 -06:00
skylord123 5090e4fbb6 - fix 2024-02-24 22:29:52 -07:00
skylord123 51e649b4cf - #109 get own events
- #28 paginate room history
- #111 manual read markers
- fix clearing global storage
- update node docs for upload file
2024-02-07 09:06:28 -07:00
skylord123 a08709265e Update node icon 2023-12-15 22:32:20 -07:00
skylord123 57ba70db6c - Received room timeline events now output msg.user containing info about the user that sent the event. 2023-12-15 04:03:13 -07:00
skylord123 a3e1381d53 - Update room state events node so topic property can be dynamically configured 2023-12-15 03:56:32 -07:00
skylord123 6dca3aa70e - #106 Add node for getting data for a user
- couple other fixes
2023-12-15 03:52:28 -07:00
skylord123 b36286d994 Change version to 0.8.0 2023-12-15 01:39:45 -07:00
skylord123 f14190d9ea - #105 Add new node for setting or getting user settings (display name or avatar_url)
- Fix class name of matrix-room-state-events node
2023-12-15 01:37:03 -07:00
skylord123 000c28e3b8 - Reduce margin between checkboxes for matrix-receive node
- 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
2023-11-25 05:38:09 -07:00
skylord123 fd174e32ff Merge pull request #103 from Skylar-Tech/102-upload-file
New file uploading node
2023-11-05 00:08:24 -06:00