- Fix Room Pagination node event data being unaccessible #28

- Add new node `Get Event` that will give you room data for a corresponding roomId and eventId #117
- Add new node `Fetch Event Relations` that can paginate through events related to another event #119
- README updates
This commit is contained in:
2024-09-16 23:27:29 -06:00
parent 6bbd1d5119
commit 02826e2769
9 changed files with 622 additions and 242 deletions
+3 -2
View File
@@ -101,7 +101,8 @@ module.exports = function(RED) {
moreMessages = true;
if(!timelineWindow) {
let timelineSet = room.getUnfilteredTimelineSet();
node.debug(JSON.stringify(timelineSet.getFilter()));
// node.debug(JSON.stringify(timelineSet.getFilter()));
// MatrixClient's option initialSyncLimit gets set to the filter we are using
// so override that value with our pageSize
timelineWindow = new TimelineWindow(node.server.matrixClient, timelineSet);
@@ -135,7 +136,7 @@ module.exports = function(RED) {
// user : node.matrixClient.getUser(event.getSender()),
topic : event.getRoomId(),
eventId : event.getId(),
event : event,
event : event.getEffectiveEvent(),
};
});
}