matrix-hacks / matrix-puppet-server

7 stars 1 forks source link

Room creation repeated. #1

Open ar1a opened 6 years ago

ar1a commented 6 years ago

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.

Sorunome commented 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

kfatehi commented 6 years ago

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