You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Becouse i played around a bit with reactions and how to get the message from a reacted message i just wanted to leave my code here and hope it helps. would be nice to have a node that returns informations about an eventID
letmatrixClient=global.get("matrixClient['@user:domain.tld']"),matrixOnline=global.get("matrixClientOnline['@user:domain.tld']");if(!matrixOnline){msg.error='Matrix client not connected.';return[null,msg];}constroomId=msg.roomId;consteventId=msg.eventId;constroom=matrixClient.getRoom(roomId);if(room){constevent=room.findEventById(eventId);if(event){msg.eventDetails={eventId: event.getId(),sender: event.getSender(),type: event.getType(),content: event.getContent(),timestamp: event.getTs()};node.send([msg,null]);}else{msg.error='Event not found.';node.send([null,msg]);}}else{msg.error='Room not found.';node.send([null,msg]);}
The text was updated successfully, but these errors were encountered:
Next release will have a new Get Event node described here: #117
Also I added another node for the next release called Fetch Event Relations that let you paginate all events that relate to a specific eventId (such as thread messages, reactions, etc). So this will probably be useful for you as well. That is done under #119
Becouse i played around a bit with reactions and how to get the message from a reacted message i just wanted to leave my code here and hope it helps. would be nice to have a node that returns informations about an eventID
The text was updated successfully, but these errors were encountered: