diff --git a/src/matrix-create-room.html b/src/matrix-create-room.html index 6adb022..a745f09 100644 --- a/src/matrix-create-room.html +++ b/src/matrix-create-room.html @@ -38,19 +38,14 @@

Create a room with the defined options in msg.payload

- Synapse API Endpoint Information + Matrix API Endpoint Information

Inputs

msg.payload - string + object
a list of options to pass to the /createRoom API. Click here for information about what can be passed.
- -
msg.userId - string -
-
User's ID that will be set into the room.

Outputs

diff --git a/src/matrix-create-room.js b/src/matrix-create-room.js index eb5b73a..d60d2b3 100644 --- a/src/matrix-create-room.js +++ b/src/matrix-create-room.js @@ -53,7 +53,6 @@ module.exports = function(RED) { }; } - // we need the status code, so set onlydata to false for this request node.server.matrixClient .createRoom(msg.payload || {}) .then(function(e){ diff --git a/src/matrix-receive.html b/src/matrix-receive.html index 7c92d75..209c0db 100644 --- a/src/matrix-receive.html +++ b/src/matrix-receive.html @@ -107,7 +107,7 @@

Receive events from Matrix.

Outputs

-
    +
+ \ No newline at end of file diff --git a/src/matrix-receive.js b/src/matrix-receive.js index 980890c..b01a533 100644 --- a/src/matrix-receive.js +++ b/src/matrix-receive.js @@ -81,10 +81,12 @@ module.exports = function(RED) { if(msg.content.info) { if(msg.content.info.thumbnail_url) { msg.thumbnail_url = node.server.matrixClient.mxcUrlToHttp(msg.content.info.thumbnail_url); + msg.thumbnail_mxc_url = msg.content.info.thumbnail_url; } if(msg.content.url) { msg.url = node.server.matrixClient.mxcUrlToHttp(msg.content.url); + msg.mxc_url = msg.content.url; } } break; diff --git a/src/matrix-send-message.html b/src/matrix-send-message.html index 1023046..f501292 100644 --- a/src/matrix-send-message.html +++ b/src/matrix-send-message.html @@ -25,14 +25,20 @@ +
+
- +
+
+ The configuration Room ID will always override msg.topic +
+
+
+ It's recommended to use m.notice for bots because the message will render in a lighter text (at least in Element client) for users to distinguish bot and real user messages. +
+
-
- Must be a valid MIME Type -