Older messages will now be purged when a user joins the room
author B Tasker
()
committer B Tasker
()
commit 6f531541fe5d64bee28788593fd0ab5a4c25db41
tree 415a451da0107d0c7df5974ea9a1265981a6fe4f
parent e07d0288f648fb142c804cf581a8b9977086480a
Older messages will now be purged when a user joins the room

The aim of this is to prevent the new user from dumping out the entire stored history of a chat. Although the client will honour "last" they could conceivably override it to 0 and grab everything.

So, when they join, we now remove any messages older than 10 seconds.

At the moment, it's a little meaningless as you don't need to join in order to do pollMsg. That will obviously need to change.
server/LocalChat.py