mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2025-04-20 04:53:06 -06:00
Merge pull request #13 from Skylar-Tech/12-failed-logins-crash
Closes #12
This commit is contained in:
commit
3eab7f6d98
@ -136,11 +136,13 @@ module.exports = function(RED) {
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
if(node.e2ee){
|
if(node.e2ee){
|
||||||
await node.matrixClient.initCrypto();
|
node.matrixClient.initCrypto()
|
||||||
|
.catch((error) => node.error(error));
|
||||||
node.matrixClient.setGlobalErrorOnUnknownDevices(false);
|
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...");
|
node.log("Connecting to Matrix server...");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user