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
-
+
Always Returned
msg.type string
@@ -146,6 +146,11 @@
the event object returned by the Matrix server
+
+ msg.eventId object
+ The event ID, e.g. $143350589368169JsLZx:localhost
+
+
msg.content object
the message's content object
@@ -159,11 +164,6 @@
msg.type
== 'm.reaction '
-
- msg.info object
- the content's info.
-
-
msg.referenceEventId string
the message that the reaction relates to
@@ -187,39 +187,54 @@
URL to the sticker image
+
+ msg.mxc_url string
+ Matrix URL to the sticker image
+
+
msg.thumbnail_url string
URL to the thumbnail of the sticker
+
+
+ msg.thumbnail_mxc_url string
+ Matrix URL to the thumbnail of the sticker
+
msg.type
== 'm.file '
- msg.file.info string
- the content's info.
+ msg.url string
+ the file's URL
- msg.file.url string
- the file's URL
+ msg.mxc_url string
+ the file's Matrix URL
msg.type
== 'm.image '
- msg.image.info string
- the image info.
-
-
-
- msg.file.url string
+ msg.url string
the image's URL
- msg.file.thumbnail_url string
+ msg.mxc_url string
+ the image's Matrix URL
+
+
+
+ msg.thumbnail_url string
the image's thumbnail URL
+
+
+ msg.thumbnail_mxc_url string
+ the image's thumbnail Matrix URL
+
-
+
\ 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 @@
Name
+
Matrix Server Config
+
Room ID
-
+
+
+ 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.
+
+
Message Format
@@ -56,9 +63,6 @@
msg.format input
-