Open ar1a opened 6 years ago
This is....rather complex due to everything beeing asyncrone and stuff, and it is an edge case so don't expect a fix for this soon
Everything should probably go through a queue. this may help https://www.npmjs.com/package/queue
we use it in the imessage bridge but i think using it in the puppet server may be a good idea
If a room has not been created yet, and multiple messages are sent quickly, the script will try to create a room for every single message, until the first one is created and set (and then itll just send them to that one).
Which leaves a few empty servers that were made but abandoned. An idea would be to either clean these up, or maybe make sure only one room is being made at a time.