github Skylar-Tech/node-red-contrib-matrix-chat v0.8.0

23 days ago

This is a big release. Added a bunch of new nodes and even modified existing nodes to return more information. We are also deprecating the Send Image and Send file nodes in favor of the new Upload File node.

Deprecation

The Send Image and Send File nodes are being deprecated and will be removed in a future release. Instead use the Upload File node and chain with a Send Message node to get the same behavior (the Send Message node was updated so if you pass an object in as the payload it will override the whole message object and so the Upload File node returns an already formatted payload object to allow direct chaining).

New Nodes

  • New Send Typing node for sending typing events #100
    • useful if you want to show the bot is processing a request (such as doing a chatGPT or other API call)
  • New Room State Events node for setting/getting room state events #97
    • Can set room name, topic, avatar, and custom state events
    • Can get name, topic, avatar, encrypted, power_levels, aliases, guest_access, join_rule, join_allow_rules, and custom events.
  • New Upload File node #102
    • This was added so you can upload a file without sending a message so you can for example upload an image to set a new room or user avatar.
    • Supports file encryption
    • This node will auto detect file information for m.video, m.audio, and m.image files (resolution, duration, etc)
    • Has option to generate thumbnail for m.video and m.image files
    • Can be chained directly to a send message node to send the file to a room
  • New User Settings node for getting or setting current user's avatar or display name #105
  • New Get User node for fetching information about a userId (display name, avatar URL, if they are currently active, when they were last active, etc)
    • Testing shows that the bot user must be sharing a room with the user you are querying information for
  • New Paginate Room node for fetching room history #28

All Changes

  • Make errors catchable (fixes #85) - Thanks bvmensvoort!
  • Reduce margin between checkboxes for matrix-receive node config
  • matrix-send-message node can now be used to reply in a thread (closes #104)
  • matrix-receive-node output changes
    • added msg.mentions to output for easier access to who was mentioned in message
    • added boolean msg.isThread to output based on whether the message is a thread reply or not
    • added msg.user to output for getting full user information object (contains their display name, avatar URL, when they were last active, etc)
  • New Send Typing node for sending typing events #100
  • New Room State Events node for setting/getting room state events #97
  • Updated Leave Room node so it deletes the room from local storage
  • Updated server config node so it deletes the matrix client from context storage during shutdown
  • Added new node for file uploading #102
  • Send message node now accepts an object to override the full message content
    • This allows you to fully customize the message object
    • This was a necessary change so you can now connect an Upload File node with a Send Message node
  • New User Settings node for getting or setting current user's avatar or display name #105
  • Rooms provided in Room ID config under receive node now trims results to prevent mistakes
  • Fixed Received images missing thumbnail kills Node Red #65
  • Stop using deprecated login object #114 - Thanks squatica!

Don't miss a new node-red-contrib-matrix-chat release

NewReleases is sending notifications on new releases.