mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-18 05:03:37 -06:00
- #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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user