Quickfix for e2ee not enabling

This commit is contained in:
Skylar Sadlier 2021-08-31 19:27:12 -06:00
parent cd8ec10109
commit f894fab85e
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "node-red-contrib-matrix-chat", "name": "node-red-contrib-matrix-chat",
"version": "0.1.7", "version": "0.1.8",
"description": "Matrix chat server client for Node-RED", "description": "Matrix chat server client for Node-RED",
"dependencies": { "dependencies": {
"got": "^11.8.2", "got": "^11.8.2",

View File

@ -27,8 +27,8 @@ module.exports = function(RED) {
this.deviceId = this.credentials.deviceId || null; this.deviceId = this.credentials.deviceId || null;
this.url = this.credentials.url; this.url = this.credentials.url;
this.autoAcceptRoomInvites = n.autoAcceptRoomInvites; this.autoAcceptRoomInvites = n.autoAcceptRoomInvites;
this.enableE2ee = this.enableE2ee || false; this.enableE2ee = n.enableE2ee || false;
this.e2ee = this.enableE2ee && this.deviceId; this.e2ee = (this.enableE2ee && this.deviceId);
if(!this.credentials.accessToken) { if(!this.credentials.accessToken) {
node.log("Matrix connection failed: missing access token."); node.log("Matrix connection failed: missing access token.");