- #97 added option to fetch state event from local storage and fallback to server if necessary (allows for faster lookups and gives the full event object with information about when/who created it, etc)

- #97 remove num, bool, bin, and data from being options you can set to a state event (currently only objects and sometimes strings are allowed)
- Updated Leave Room node so it deletes the room from local storage
- Updated server config node so it deletes the matrix client from storage during shutdown (possibly solution to #94)
This commit is contained in:
2023-10-22 00:29:12 -06:00
parent fd605005d1
commit 1859696122
4 changed files with 60 additions and 22 deletions
+7
View File
@@ -174,6 +174,13 @@ module.exports = function(RED) {
node.on('close', function(done) {
stopClient();
if(node.globalAccess) {
try {
node.context().global.delete('matrixClient["'+node.userId+'"]');
} catch(e){
node.error(e.message, {});
}
}
done();
});