From 4d1ec9e65cd9ee26a569ff999c2f2182ed9057dd Mon Sep 17 00:00:00 2001 From: Skylar Sadlier Date: Thu, 3 Feb 2022 10:36:09 -0700 Subject: [PATCH] - Make it clear that manually generating a Device ID is bad behavior - Make DeviceID no longer required for matrix-server-config --- src/matrix-server-config.html | 6 +++--- src/matrix-server-config.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix-server-config.html b/src/matrix-server-config.html index 83bff78..5aefda6 100644 --- a/src/matrix-server-config.html +++ b/src/matrix-server-config.html @@ -29,7 +29,7 @@ userId: { type: "text", required: true }, deviceLabel: { type: "text", required: false }, accessToken: { type: "password", required: true }, - deviceId: { type: "text", required: true }, + deviceId: { type: "text", required: false }, url: { type: "text", required: true } }, defaults: { @@ -91,8 +91,8 @@
- If you have a Device ID for this auth token you can place it here, or you can leave it blank to have one automatically generated (this field will always be blank if auto generated as it is saved internally).
- WARNING: If you change this after the client has already initialized you will break encryption. + If you have a Device ID for this auth token you can place it here, or you can leave it blank to have one automatically generated (this field will always be blank if auto generated as it is saved internally). DO NOT manually set one, this must be generated by the server.
+ WARNING: If you change this after the client has already initialized you will break encryption. Your Device ID is tied to your encryption keys.
diff --git a/src/matrix-server-config.js b/src/matrix-server-config.js index bd8fd3c..da99ffd 100644 --- a/src/matrix-server-config.js +++ b/src/matrix-server-config.js @@ -346,7 +346,7 @@ module.exports = function(RED) { deviceLabel: { type: "text", required: false }, userId: { type: "text", required: true }, accessToken: { type: "text", required: true }, - deviceId: { type: "text", required: true }, + deviceId: { type: "text", required: false }, url: { type: "text", required: true } } });