- Fixed: Client would crash if invalid login was passed and e2ee was enabled
This commit is contained in:
Skylar Sadlier 2021-08-30 11:53:50 -06:00
parent 6d15c259b4
commit 4a6fd4f015

View File

@ -136,11 +136,13 @@ module.exports = function(RED) {
async function run() {
if(node.e2ee){
await node.matrixClient.initCrypto();
node.matrixClient.initCrypto()
.catch((error) => node.error(error));
node.matrixClient.setGlobalErrorOnUnknownDevices(false);
} else {
}
await node.matrixClient.startClient({ initialSyncLimit: 8 });
node.matrixClient.startClient({ initialSyncLimit: 8 })
.catch((error) => node.error(error));
}
node.log("Connecting to Matrix server...");