- #100 add documentation for new typing node and update README

- #100 fix typing event causing server error due to number being string
- Mention using pantalaimon as an alternative for E2EE support in README
This commit is contained in:
2023-10-22 16:56:49 -06:00
parent 785e0cd7be
commit d7c4bc26bb
6 changed files with 147 additions and 2 deletions
+3 -1
View File
@@ -33,6 +33,7 @@ module.exports = function(RED) {
node.on('input', async function(msg) {
if (! node.server || ! node.server.matrixClient) {
node.error("No matrix server selected", msg);
node.send([null, msg]);
return;
}
@@ -54,6 +55,8 @@ module.exports = function(RED) {
}
} else if(type === "bool") {
value = (property === 'true');
} else if(type === "num") {
value = Number(property);
}
return value;
}
@@ -68,7 +71,6 @@ module.exports = function(RED) {
return;
}
console.log("sending typing",roomId, typing, timeoutMs);
await node.server.matrixClient.sendTyping(roomId, typing, timeoutMs);
node.send([msg, null]);
} catch(e) {