Commit Graph

53 Commits

Author SHA1 Message Date
Skylar Sadlier
4d1ec9e65c - Make it clear that manually generating a Device ID is bad behavior
- Make DeviceID no longer required for matrix-server-config
2022-02-03 10:36:09 -07:00
Skylar Sadlier
2fcd463eb6 - Update release to 0.4.0 2022-02-03 10:16:19 -07:00
Skylar Sadlier
b44629c84e - When checking authentication we should retry startup if the error we receive isn't related to invalid auth token (M_UNKNOWN_TOKEN) 2022-02-03 10:15:52 -07:00
Skylar Sadlier
9f0a962991 - Fixed: Reactions weren't working because sendCompleteEvent is a private method. 2022-02-03 09:40:32 -07:00
Skylar Sadlier
f3df8c6f97 This comment is no longer necessary since we implemented it. 2022-01-28 11:17:23 -07:00
Skylar Sadlier
d6ab098063 Fixed example readme linking to wrong json file Closes #38 2022-01-28 10:57:35 -07:00
Skylar Sadlier
614920c40c Fixed: matrix-join-room was requiring userId when it didn't need it Closes #39 2022-01-28 10:55:38 -07:00
Skylar Sadlier
58d7d23b2f - Device ID is now stored inside the matrix-client-storage directory within Node-RED's config folder. This way if you leave the Device ID blank it will automatically generate one and save it. Previously if you didn't set a Device ID it would automatically generate one every time the client started which would break encryption (since device_id is tied to your encryption keys).
- You can now generate an Access Token and Device ID from just a username and password (use the Update Access Token button when configuring a client).
- Updated the look of the matrix-server-config node (icons and reorganization)
- Invalid auth token will no longer crash Node-RED on deployment/start. We do an authorized request before starting the client to see if the auth token is valid. If it is not the client will not start and all nodes for this client will show disconnected and an error will display in the debug toolbar.
- Updated matrix olm library from 3.2.1 to 3.2.8
- Setting a Device Label from the server-config node will now update your device's label. If you view the sessions for the client you will see it gets updated after deployment.
2022-01-28 10:53:10 -07:00
Skylar Sadlier
25c92b787a - Messages used to get ignored if they were over 1 second old. This caused issues with messages being ignored on servers that took longer than a second to respond (*cough* matrix.org *cough*). Now it accepts all new messages. Moving forward any messages that are sent before Node-RED starts or gets deployed will be ignored (so that old messages don't pop up since the cache clears every deploy/node-red restart so old messages look like new ones).
- When the matrix-server node would shut down (from a deployment) it wasn't properly shutting the old instance of the client down. This would cause messages to start duplicating X times (X being however many times you deployed since you last started Node-RED). This is now fixed.
- Upgraded to matrix-js-sdk 15.3.0
- Message processing is now done on the matrix-server node. Before if you had multiple matrix-receive nodes it would output one line per matrix-receive node into the log. Now it only outputs from the matrix-server node. Note that all messages get logged that are sent to rooms the bot is in whereas before it would only log message in rooms the matrix-receive node was in.
- Fixed Shared secret registration failing if user_type was defined.
2022-01-14 12:56:14 -07:00
Skylar Sadlier
0b9c59a7be Fix eventId not being returned from matrix-send-file and matrix-send-message nodes 2021-12-19 00:34:51 -07:00
Skylar Sadlier
9c836c9262 Set version 0.2.6 2021-11-25 00:04:09 -07:00
Skylar Sadlier
9c62a73b15
Merge pull request #35 from Skylar-Tech/dev
Dev
2021-11-25 00:02:01 -07:00
Skylar Sadlier
447b18835c Closes #34 - Fix connection state logic 2021-11-25 00:00:31 -07:00
Skylar Sadlier
2341cbef10 Closes #32 - fixed leaking unencrypted messages during startup 2021-11-24 23:57:56 -07:00
Skylar Sadlier
73d802ff0d
Merge pull request #27 from Skylar-Tech/dev
Release 0.2.4
2021-09-20 09:27:16 -06:00
Skylar Sadlier
cf1bd78ee1 Version 0.2.4
- Can now configure a room on the invite-room node (instead of having to pass it in on the msg)
- Changed how the connection event was handled by nodes
- matrix-synapse-join-room node was broken (was trying to access a variable that was never defined).
- olm library updated to 3.2.1 to hopefully fix "account.generate_fallback_key is not a function" Fixes #26
- Added description to the server configuration node that describes how to create a user for use with this module
- Update link to create room api for matrix-create-room.html
2021-09-20 09:24:40 -06:00
Skylar Sadlier
a10667a0e8
Update README.md
Add matrix room link for support
2021-09-03 12:07:17 -06:00
Skylar Sadlier
aaecaaec39 Formatted html message wasn't converting to a string. 2021-09-03 11:19:19 -06:00
Skylar Sadlier
be5416a68e guests query param for synapse user list request needs to be a string but our docs say it is a bool. Lets auto convert it so we don't cause a BC problem. 2021-09-03 10:16:49 -06:00
Skylar Sadlier
f8c5344a4e Update version to 0.2.1 2021-09-03 08:56:43 -06:00
Skylar Sadlier
3c99bf21a9
Merge pull request #23 from Skylar-Tech/dev
0.2.1
2021-09-03 08:56:02 -06:00
Skylar Sadlier
63728d86a5
Merge pull request #22 from Skylar-Tech/21-global-client
Global access to matrix client so user's can do whatever they want
2021-09-03 08:51:32 -06:00
Skylar Sadlier
ff66222687 Fix global variable for matrix client online status not setting to false when connection fails 2021-09-03 08:43:13 -06:00
Skylar Sadlier
fa92f79304 Move installing section of readme above usage 2021-09-03 08:28:27 -06:00
Skylar Sadlier
f70d73b011 - Fix typo in example json file name 2021-09-03 08:26:46 -06:00
Skylar Sadlier
6a310de708 Closes #21
- Can now access the matrix client globally so it can be used in function nodes (this way you are not limited by only the nodes we have published)
- Added example for using the Matrix Client in a function to redact messages. This should be a great example to show people what is possible.
2021-09-03 08:24:02 -06:00
Skylar Sadlier
d5519a6828
Merge pull request #19 from Skylar-Tech/dev
0.2.0 release
2021-09-02 19:32:49 -06:00
Skylar Sadlier
2cf8ba1e67 - Update readme so it references new storage location 2021-09-02 11:09:48 -06:00
Skylar Sadlier
9d080b6c1a Set version to 0.2.0 2021-09-02 11:00:19 -06:00
Skylar Sadlier
755e18da50
Merge pull request #18 from Skylar-Tech/9-fix-node-docs
9 fix node docs
2021-09-02 10:53:24 -06:00
Skylar Sadlier
4bd2dce434 - Docs for various nodes updated (closes #9)
- Fixed some nodes not matching how their docs describe how they function (such as node configuration should always take precedence over inputs)
2021-09-02 10:51:47 -06:00
Skylar Sadlier
b698389491 - matrix-create-room had wrong input information listed and wrong API reference URL (fixes #14)
- fixed docs & node for matrix-receive
2021-09-01 20:50:23 -06:00
Skylar Sadlier
14badaeeb5 - fs-extra added as a dependency to handle config folder upgrading
- config folder now upgrades automatically to the new structure
- fixed error preventing matrix client from connecting to servers (just stays disconnected)
2021-09-01 20:48:39 -06:00
Skylar Sadlier
ae7e766a98
Merge pull request #17 from Skylar-Tech/15-fix-storage
Split storage directory up based on User ID
2021-09-01 13:38:32 -06:00
Skylar Sadlier
daafe33e86 Fix clients using the same directory for local storage instead of being unique 2021-09-01 11:09:50 -06:00
Skylar Sadlier
f894fab85e Quickfix for e2ee not enabling 2021-08-31 19:27:12 -06:00
Skylar Sadlier
cd8ec10109 Update version to 0.1.7 2021-08-31 06:27:31 -06:00
Skylar Sadlier
eb591fbacc Add extra notes about e2ee to make sure it's obvious we are still working on it 2021-08-30 19:39:02 -06:00
Skylar Sadlier
2c4621e293 - Fixed not being able to disable e2ee
- Session.logged_out events are now processed to display an error from the node (helps user figure out why their login failed).
- Update description for matrix-server-config
- Updated readme & examples
2021-08-30 19:21:02 -06:00
Skylar Sadlier
b93a54f041 - Fixed not being able to disable e2ee
- Session.logged_out events are now processed to display an error from the node (helps user figure out why their login failed).
2021-08-30 13:15:22 -06:00
Skylar Sadlier
3eab7f6d98
Merge pull request #13 from Skylar-Tech/12-failed-logins-crash
Closes #12
2021-08-30 11:54:13 -06:00
Skylar Sadlier
4a6fd4f015 Closes #12
- Fixed: Client would crash if invalid login was passed and e2ee was enabled
2021-08-30 11:53:50 -06:00
Skylar Sadlier
6d15c259b4 - Update documentation for matrix-room-users and matrix-synapse-create-edit-user
- matrix-synapse-deactivate-user fixed
2021-08-30 09:50:13 -06:00
Skylar Sadlier
15c70e2b2d Fixed issue with node-localstorage being a dev dependency when it shouldn't be. Also added informational text to matrix-server-config.html 2021-08-26 09:39:04 -06:00
Skylar Sadlier
8bee386216 - Update version to 0.1.5
- Updated readme
- Support for e2ee is here! It's in beta as I am sure there are still things to do (such as adding a node for encrypting files as files currently are not encrypted).
- Added nodes for joining a room (and forcing users into a room), creating rooms, decrypting files, and inviting users to a room.
- matrix-synapse-register node name changed from "Synapse Register v1" to "Shared Secret Registration" to make it more self explanatory.
- matrix-receive node updated so that instead of selecting what events to ignore you select what events to listen on (this way it isn't a BC every time we add another event).
- matrix-receive now handles m.emote & m.sticker events
- matrix-server-config updated to now include the device ID and a checkbox to flag whether to enable e2ee support or not.
- matrix-synapse-create-edit-user.html updated to include link to the API docs'
- matrix-synapse-deactivate-user.html updated to include message about alternative way to deactivate users (in a way that is recoverable)
- matrix-synapse-register node does not need to display if connected or not since it users an entirely different API anyways
- matrix-synapse-users.html updated to include link to API docs
2021-08-23 10:17:08 -06:00
Skylar Sadlier
aeb52518ad Update some docs 2021-08-18 14:39:35 -06:00
Skylar Sadlier
dc5f744e5f Added server status to nodes that didn't have it 2021-08-18 14:19:56 -06:00
Skylar Sadlier
2b2c628904 Added some examples 2021-08-18 14:19:20 -06:00
Skylar Sadlier
b33595d5eb - matrix-receive node updated so that msg.sender is msg.userId instead (for better node chaining).
- change all references from msg.roomId to msg.topic to conform to Node-RED standards.
- Added node for listing Synapse users server-wide (as long as the caller is an admin)
- Events for Room.timeline are now handled by the server-config node and node's that listen for it bind a listener to that instead of the matrix client.
- Added kick and ban nodes for kicking/banning from a room
- Added node for fetching synapse user list using synapse admin API
- Added node for fetching whois data from a user using Matrix admin API
- Added node for deactivating users using the Synapse admin API
- Can register users using the Synapse admin endpoint v1 (yay legacy)
- Can add users using the Synapse admin endpoint v2
- Add more info to the readme.
2021-08-18 11:18:29 -06:00
Skylar Sadlier
cd99955115 - New react node for reacting to messages
- made input and output nodes more compatible with each other (for relay purposes).
- File/Image input nodes can be combined with a File In node now
- Remove console.log debug lines
- set version to 0.0.3
- send message node updated to handle message formats and types.
- Fixed ignore properties on matrix receive node not saving
- created basic readme
- WIP on node docs
2021-08-16 21:56:53 -06:00