Closes #12
- Fixed: Client would crash if invalid login was passed and e2ee was enabled
This commit is contained in:
parent
6d15c259b4
commit
4a6fd4f015
@ -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...");
|
||||
|
Loading…
Reference in New Issue
Block a user