mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-14 02:41:17 -06:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aadd82d820 | |||
| 4e6fa50a67 | |||
| c15893bab5 | |||
| f0af0e92fe |
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "node-red-contrib-matrix-chat",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"description": "Matrix chat server client for Node-RED",
|
||||
"dependencies": {
|
||||
"abort-controller": "^3.0.0",
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
global.Olm = require('olm');
|
||||
const fs = require("fs-extra");
|
||||
let RelationType, TimelineWindow, sdk, LocalStorageCryptoStore, RoomEvent, RoomMemberEvent, HttpApiEvent, ClientEvent, MemoryStore;
|
||||
let RelationType, sdk, LocalStorageCryptoStore, RoomEvent, RoomMemberEvent, HttpApiEvent, ClientEvent, MemoryStore;
|
||||
|
||||
(async () => {
|
||||
const mod = await import("matrix-js-sdk");
|
||||
RelationType = mod.RelationType;
|
||||
TimelineWindow = mod.TimelineWindow;
|
||||
// matrix-js-sdk doesn't export a default – the top-level export is the same object:
|
||||
sdk = mod;
|
||||
|
||||
@@ -502,8 +501,6 @@ module.exports = function(RED) {
|
||||
localTimeoutMs: '30000'
|
||||
});
|
||||
|
||||
new TimelineWindow(); // from our top-level variable, but to keep minimal changes,
|
||||
// you can just do: (await import("matrix-js-sdk")).TimelineWindow();
|
||||
|
||||
matrixClient.timelineSupport = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user