matrix-appservice-twitter icon indicating copy to clipboard operation
matrix-appservice-twitter copied to clipboard

Cleanup 'empty' rooms.

Open Half-Shot opened this issue 8 years ago • 3 comments

One of the tricky problems we have is to be able to tell when a room is effectively wasting resources. It would make sense to stop sending events to rooms with no matrix users, and possible discussion around withholding events from rooms with inactive users (although, that's a whole different story).

Half-Shot avatar Jul 08 '16 13:07 Half-Shot

The new plan is to periodically call ASBot.getMemberLists() and check to see if users are active in there. If not, we 'disconnect' them if they are connected and check again later. Seems like a good idea to do this every 5 minutes.

Half-Shot avatar Aug 31 '16 08:08 Half-Shot

https://github.com/matrix-org/matrix-appservice-bridge/pull/45 will make this eeeasy :)

Half-Shot avatar Dec 15 '16 11:12 Half-Shot

Aaaaaaand #83 is the actual PR that will do this

Half-Shot avatar Feb 02 '17 14:02 Half-Shot