diff --git a/icons/matrix.png b/icons/matrix.png
index ecec1cc..2e5a9d3 100644
Binary files a/icons/matrix.png and b/icons/matrix.png differ
diff --git a/matrix.html b/matrix.html
index f6dffae..4620049 100644
--- a/matrix.html
+++ b/matrix.html
@@ -40,38 +40,61 @@
+
+
@@ -139,25 +171,34 @@
@@ -182,21 +223,31 @@
@@ -222,24 +273,40 @@
diff --git a/matrix.js b/matrix.js
index c893041..8a84916 100644
--- a/matrix.js
+++ b/matrix.js
@@ -162,7 +162,7 @@ module.exports = function(RED) {
var msg = {
payload: event.getContent().body,
sender: event.getSender(),
- room: room.roomId
+ roomId: room.roomId
};
node.send(msg);
@@ -254,7 +254,9 @@ module.exports = function(RED) {
}
var destRoom = "";
- if (node.room) {
+ if (msg.roomId) {
+ destRoom = msg.roomId;
+ } else if (node.room) {
destRoom = node.room;
} else if (node.configNode.room) {
destRoom = node.configNode.room;
diff --git a/package.json b/package.json
index 52e3f0f..f71bd15 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-matrix",
- "version": "0.0.3",
+ "version": "0.0.4",
"description": "Node-RED Module for Matrix",
"main": "matrix.js",
"dependencies": {