Closes #32 - fixed leaking unencrypted messages during startup

This commit is contained in:
Skylar Sadlier 2021-11-24 23:57:56 -07:00
parent 73d802ff0d
commit 2341cbef10

View File

@ -89,6 +89,7 @@ module.exports = function(RED) {
if(!node.server.isConnected()) { if(!node.server.isConnected()) {
node.error("Matrix server connection is currently closed"); node.error("Matrix server connection is currently closed");
node.send([null, msg]); node.send([null, msg]);
return;
} }
msg.topic = node.roomId || msg.topic; msg.topic = node.roomId || msg.topic;